From 1fd07567ccfa27d30003f9ffccee1e9be420eea7 Mon Sep 17 00:00:00 2001 From: crs Date: Tue, 23 Jul 2002 12:08:30 +0000 Subject: [PATCH] checkpoint. more CUnicode fixes. --- base/CUnicode.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/CUnicode.cpp b/base/CUnicode.cpp index 5a677874..f36a82d7 100644 --- a/base/CUnicode.cpp +++ b/base/CUnicode.cpp @@ -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;