From f7ccf2fcaf619c7ff1c0b133bdc47449c1345a15 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sun, 15 Jul 2001 15:18:22 +0000 Subject: (put16) [!_STRING_ARCH_unaligned && BIG_ENDIAN]: Fix index. --- iconv/loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); \ -- cgit v1.1