diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index 412dcbe2ce..3f00282a39 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -2760,7 +2760,7 @@ public: { OSStatus status = noErr ; ByteCount byteOutLen ; - ByteCount byteInLen = strlen(psz) ; + ByteCount byteInLen = strlen(psz) + 1; wchar_t *tbuf = NULL ; UniChar* ubuf = NULL ; size_t res = 0 ;