diff options
| author | Shawn Hoffman <godisgovernment@gmail.com> | 2020-08-17 17:26:38 -0700 |
|---|---|---|
| committer | Shawn Hoffman <godisgovernment@gmail.com> | 2020-08-23 13:55:15 -0700 |
| commit | c22748dc38596ffc42b77496fdb62ef2c92efdcc (patch) | |
| tree | 4a549241448653332afa70053fa1ae3dafe9bd9d /Source/Core/Common/Timer.cpp | |
| parent | b021573a7074a07e8e391526d818555caef24d3f (diff) | |
windows: fix some incorrect string lengths
Diffstat (limited to 'Source/Core/Common/Timer.cpp')
| -rw-r--r-- | Source/Core/Common/Timer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/Timer.cpp b/Source/Core/Common/Timer.cpp index 81fb792ff3..d33d1951eb 100644 --- a/Source/Core/Common/Timer.cpp +++ b/Source/Core/Common/Timer.cpp @@ -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] = {}; |
