aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--iconv/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iconv/loop.c b/iconv/loop.c
index 3e40845..ae83894 100644
--- a/iconv/loop.c
+++ b/iconv/loop.c
@@ -111,7 +111,7 @@
# define put16(addr, val) \
({ uint16_t __val = (val); \
((unsigned char *) (addr))[1] = __val; \
- ((unsigned char *) (addr))[2] = __val >> 8; \
+ ((unsigned char *) (addr))[0] = __val >> 8; \
(void) 0; })
# define put32(addr, val) \
({ uint32_t __val = (val); \