fixed an off-by-one error in textToUTF8().

This commit is contained in:
crs 2002-07-24 17:39:52 +00:00
parent 67051556bb
commit 4c38178fb9
1 changed files with 1 additions and 1 deletions

View File

@ -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));