소스 검색

fix nl_langinfo table for LC_TIME era-related items

due to a skipped slot and missing null terminator, the last few
strings were off by one or two slots from their item codes.

(cherry picked from commit a19cd2b64aabee4ae3c80bcf4ba8da26fba560e4)
Rich Felker 10 년 전
부모
커밋
7de071453d
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/locale/langinfo.c

+ 2 - 1
src/locale/langinfo.c

@@ -17,8 +17,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";