summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2018-01-11 17:16:52 +0000
committerMarshall Clow <mclow.lists@gmail.com>2018-01-11 17:16:52 +0000
commit04f23ba84fbc53ab312805dc6c0ab657a73bb55b (patch)
treefdce2d32db58951bf169b1a2bbea7eac553e1214 /src
parent45d5893943f0099a4ef827d699708cda005a37f5 (diff)
downloadexternal_libcxx-04f23ba84fbc53ab312805dc6c0ab657a73bb55b.tar.gz
external_libcxx-04f23ba84fbc53ab312805dc6c0ab657a73bb55b.tar.bz2
external_libcxx-04f23ba84fbc53ab312805dc6c0ab657a73bb55b.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/locale.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/locale.cpp b/src/locale.cpp
index a6cb0e97d..11f864a2f 100644
--- a/src/locale.cpp
+++ b/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;