summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_system_unittest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/fx_system_unittest.cpp')
-rw-r--r--core/fxcrt/fx_system_unittest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/fxcrt/fx_system_unittest.cpp b/core/fxcrt/fx_system_unittest.cpp
index 7747086b1b..da616b4ee6 100644
--- a/core/fxcrt/fx_system_unittest.cpp
+++ b/core/fxcrt/fx_system_unittest.cpp
@@ -184,8 +184,9 @@ TEST(fxcrt, FXSYS_wcsftime) {
for (int year = -2500; year <= 2500; ++year) {
year_time.tm_year = year;
- wchar_t buf[100] = {};
- FXSYS_wcsftime(buf, FX_ArraySize(buf), L"%Y-%m-%dT%H:%M:%S", &year_time);
+ wchar_t year_buf[100] = {};
+ FXSYS_wcsftime(year_buf, FX_ArraySize(year_buf), L"%Y-%m-%dT%H:%M:%S",
+ &year_time);
}
// Ensure wcsftime handles bad years, etc. without crashing.