mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-06 05:12:26 +08:00
fixed an off-by-one error in textToUTF8().
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user