diff --git a/src/helper_functions.cpp b/src/helper_functions.cpp index ba2e15a5..a2825d5e 100644 --- a/src/helper_functions.cpp +++ b/src/helper_functions.cpp @@ -28,7 +28,7 @@ std::string utf16ToUtf8(const std::wstring& wstr) { std::wstring_convert converterX; std::string str = converterX.to_bytes(wstr); - str.erase(std::remove(str.begin(), str.end(), NULL), str.end()); + str.erase(std::remove(str.begin(), str.end(), '\0'), str.end()); return str; }