mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07: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