mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-27 14:58:32 +00:00
windows: fix some incorrect string lengths
This commit is contained in:
parent
b021573a70
commit
c22748dc38
2 changed files with 7 additions and 5 deletions
|
@ -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] = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue