mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-11 16:49:28 +02:00
windows: fix some incorrect string lengths
This commit is contained in:
@ -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] = {};
|
||||
|
Reference in New Issue
Block a user