about summary refs log tree commit diff
path: root/iconv/loop.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2001-07-15 15:18:22 +0000
committerAndreas Schwab <schwab@suse.de>2001-07-15 15:18:22 +0000
commitf7ccf2fcaf619c7ff1c0b133bdc47449c1345a15 (patch)
tree641f5ba67735bb8e4f34d2ebfa7509192b71042e /iconv/loop.c
parent567f6a473aaf3fd0a21687e9f35d183c50023e0f (diff)
downloadglibc-f7ccf2fcaf619c7ff1c0b133bdc47449c1345a15.tar.gz
glibc-f7ccf2fcaf619c7ff1c0b133bdc47449c1345a15.tar.xz
glibc-f7ccf2fcaf619c7ff1c0b133bdc47449c1345a15.zip
(put16) [!_STRING_ARCH_unaligned && BIG_ENDIAN]: Fix index.
Diffstat (limited to 'iconv/loop.c')
-rw-r--r--iconv/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iconv/loop.c b/iconv/loop.c
index 3e40845f38..ae83894dc9 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);						      \