Fix some too-big local arrays. Thanks to dcdillon for the patch. Reviewed as D28217

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@322295 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2018-01-11 17:16:52 +00:00
parent 45d5893943
commit 04f23ba84f

View File

@@ -4659,7 +4659,7 @@ static
string* string*
init_am_pm() init_am_pm()
{ {
static string am_pm[24]; static string am_pm[2];
am_pm[0] = "AM"; am_pm[0] = "AM";
am_pm[1] = "PM"; am_pm[1] = "PM";
return am_pm; return am_pm;
@@ -4669,7 +4669,7 @@ static
wstring* wstring*
init_wam_pm() init_wam_pm()
{ {
static wstring am_pm[24]; static wstring am_pm[2];
am_pm[0] = L"AM"; am_pm[0] = L"AM";
am_pm[1] = L"PM"; am_pm[1] = L"PM";
return am_pm; return am_pm;