diff options
-rw-r--r-- | libcxx/src/locale.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/src/locale.cpp b/libcxx/src/locale.cpp index a6cb0e97d12..11f864a2f41 100644 --- a/libcxx/src/locale.cpp +++ b/libcxx/src/locale.cpp @@ -4659,7 +4659,7 @@ static string* init_am_pm() { - static string am_pm[24]; + static string am_pm[2]; am_pm[0] = "AM"; am_pm[1] = "PM"; return am_pm; @@ -4669,7 +4669,7 @@ static wstring* init_wam_pm() { - static wstring am_pm[24]; + static wstring am_pm[2]; am_pm[0] = L"AM"; am_pm[1] = L"PM"; return am_pm; |