0
0
mirror of https://github.com/ecki/net-tools.git synced 2025-07-05 21:23:00 +00:00
Files
net-tools/lib/frame.c
Mike Frysinger c17ec95072 lib: frame: avoid casting char* to short*
This might end up violating alignment requirements, so memcpy the
variable through a short variable instead.  For most systems, this
will optimize into the same code anyways, and for the rest, we need
to do it this way to avoid unaligned accesses crashing.

URL: https://bugs.gentoo.org/558436
2015-08-25 22:53:59 -04:00

1.5 KiB