fix nl_langinfo table for LC_TIME era-related items
authorRich Felker <dalias@aerifal.cx>
Sat, 26 Jul 2014 06:42:33 +0000 (02:42 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 26 Jul 2014 06:42:33 +0000 (02:42 -0400)
due to a skipped slot and missing null terminator, the last few
strings were off by one or two slots from their item codes.

src/locale/langinfo.c

index 13abf45b8859a6a7a7d6f5f071dbfc8a13dc8a3e..657dd9c4060b14e9921cd998675988db1d6ed9b5 100644 (file)
@@ -18,8 +18,9 @@ static const char c_time[] =
        "%H:%M:%S\0"
        "%I:%M:%S %p\0"
        "\0"
+       "\0"
        "%m/%d/%y\0"
-       "0123456789"
+       "0123456789\0"
        "%a %b %e %T %Y\0"
        "%H:%M:%S";