Fixed #1159 (valgrind error)

This commit is contained in:
Matthias Koefferlein 2022-09-22 21:17:51 +02:00
parent db37bdd5e7
commit b8263d2529
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ std::string to_lower_case (const std::string &s)
std::string to_local (const std::string &s)
{
std::unique_ptr<char> buffer (new char [MB_CUR_MAX]); // MB_CUR_MAX isn't a constant
std::unique_ptr<char []> buffer (new char [MB_CUR_MAX]); // MB_CUR_MAX isn't a constant
std::string ls;
std::wstring ws = to_wstring (s);