fixed an off-by-one error in textToUTF8().
This commit is contained in:
parent
67051556bb
commit
4c38178fb9
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue