From 32576a3edf786412be1b2e6e431507e680fb261c Mon Sep 17 00:00:00 2001 From: Mohamed Ali Chebbi Date: Tue, 7 Feb 2023 12:12:15 +0100 Subject: [PATCH] add test/data for video support : rework readStringWcharTag method 2 --- src/helper_functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }