Include nl_types.h. Don't define nl_item.
authordrepper <drepper>
Mon, 22 Dec 1997 17:32:52 +0000 (17:32 +0000)
committerdrepper <drepper>
Mon, 22 Dec 1997 17:32:52 +0000 (17:32 +0000)
Define CODESET, CRNCYSTR, RADIXCHAR and THOUSEP as aliases.

locale/programs/ld-ctype.c

index 0a5e4ee..f2ad46f 100644 (file)
@@ -492,8 +492,9 @@ ctype_output (struct localedef_t *locale, struct charset_t *charset,
            else
              {
                iov[2 + elem + offset].iov_base = alloca ((total + 3) & ~3);
-               memcpy (iov[2 + elem + offset].iov_base, ctype->codeset_name,
-                       total);
+               memset (mempcpy (iov[2 + elem + offset].iov_base,
+                                ctype->codeset_name, total),
+                       '\0', 4 - (total & 3));
                total = (total + 3) & ~3;
              }
            iov[2 + elem + offset].iov_len = total;