windows: fix some incorrect string lengths

This commit is contained in:
Shawn Hoffman committed 2020-08-23 13:55:15 -07:00
1 parent b021573a70
commit c22748dc38
2 files changed
+7 -5

No files matched your search

+1 -1
View File
@@ -254,7 +254,7 @@ std::string Timer::GetDateTimeFormatted(double time)
#ifdef _WIN32
wchar_t tmp[32] = {};
wcsftime(tmp, sizeof(tmp), L"%x %X", localTime);
wcsftime(tmp, std::size(tmp), L"%x %X", localTime);
return WStringToUTF8(tmp);
#else
char tmp[32] = {};