checkpoint. more CUnicode fixes.

This commit is contained in:
crs 2002-07-23 12:08:30 +00:00
parent 2fa9b263f9
commit 1fd07567cc
1 changed files with 3 additions and 3 deletions

View File

@ -244,11 +244,11 @@ CUnicode::UTF8ToText(const CString& src, bool* errors)
*dst++ = '?';
}
else {
dst += len;
dst += mblen;
}
}
*dst = '\0';
CString text(mbs);
*dst++ = '\0';
CString text(mbs, dst - mbs);
// clean up
delete[] mbs;