diff --git a/base/CUnicode.cpp b/base/CUnicode.cpp index 066f8e5f6..cc22f3c17 100644 --- a/base/CUnicode.cpp +++ b/base/CUnicode.cpp @@ -312,7 +312,7 @@ CUnicode::textToUTF8(const CString& src, bool* errors) resetError(errors); // get length of multibyte string - UInt32 n = src.size() + 1; + UInt32 n = src.size(); size_t len = 0; mbstate_t state; memset(&state, 0, sizeof(state));