diff options
-rw-r--r-- | common/win_main_utf8.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/win_main_utf8.h b/common/win_main_utf8.h index 2f83560b..077af533 100644 --- a/common/win_main_utf8.h +++ b/common/win_main_utf8.h @@ -44,7 +44,7 @@ static FILE *my_fopen(const char *fname, const char *mode) } #ifdef __cplusplus - auto strbuf = std::make_unique<wchar_t[]>(static_cast<size_t>(namelen+modelen)); + auto strbuf = std::make_unique<wchar_t[]>(static_cast<size_t>(namelen)+modelen); wname = strbuf.get(); #else wname = (wchar_t*)calloc(sizeof(wchar_t), (size_t)namelen + modelen); |