diff options
-rw-r--r-- | intern/cycles/util/util_string.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/util/util_string.cpp b/intern/cycles/util/util_string.cpp index d2c1ebe4151..51306a249cd 100644 --- a/intern/cycles/util/util_string.cpp +++ b/intern/cycles/util/util_string.cpp @@ -171,7 +171,7 @@ wstring string_to_wstring(const string& str) str.length(), NULL, 0); - wstring str_wc(length_wc + 1, 0); + wstring str_wc(length_wc, 0); MultiByteToWideChar(CP_ACP, 0, str.c_str(), @@ -190,7 +190,7 @@ string string_from_wstring(const wstring& str) NULL, 0, NULL, NULL); - string str_mb(length_mb + 1, 0); + string str_mb(length_mb, 0); WideCharToMultiByte(CP_ACP, 0, str.c_str(), |