busybox: 1.21.1 fix for move_to_unaligned16()
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
bd08eeaffa
commit
d8024d2d87
11
package/busybox/busybox-1.21.0/busybox-1.21.0-platform.patch
Normal file
11
package/busybox/busybox-1.21.0/busybox-1.21.0-platform.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- busybox-1.21.0/include/platform.h
|
||||
+++ busybox-1.21.0-platform/include/platform.h
|
||||
@@ -228,7 +228,7 @@ typedef uint32_t bb__aliased_uint32_t FI
|
||||
# define move_from_unaligned32(v, u32p) (memcpy(&(v), (u32p), 4))
|
||||
# define move_to_unaligned16(u16p, v) do { \
|
||||
uint16_t __t = (v); \
|
||||
- memcpy((u16p), &__t, 4); \
|
||||
+ memcpy((u16p), &__t, 2); \
|
||||
} while (0)
|
||||
# define move_to_unaligned32(u32p, v) do { \
|
||||
uint32_t __t = (v); \
|
Loading…
Reference in New Issue
Block a user