windows: fix some incorrect string lengths

This commit is contained in:
Shawn Hoffman 2020-08-17 17:26:38 -07:00
parent b021573a70
commit c22748dc38
2 changed files with 7 additions and 5 deletions

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] = {};