From a80ddb4a7808af6a84e8e055c4c697cd1ca08325 Mon Sep 17 00:00:00 2001 From: crs Date: Sat, 12 Jun 2004 20:46:35 +0000 Subject: [PATCH] Fixed bug in converting wide characters to multibyte. --- lib/arch/CMultibyte.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/arch/CMultibyte.cpp b/lib/arch/CMultibyte.cpp index 4f9dc5e1..2b9bb8ca 100644 --- a/lib/arch/CMultibyte.cpp +++ b/lib/arch/CMultibyte.cpp @@ -86,7 +86,7 @@ ARCH_STRING::convStringWCToMB(char* dst, } len += mblen; } - int mblen = wctomb(NULL, L'\0'); + int mblen = wctomb(dummy, L'\0'); if (mblen != -1) { len += mblen - 1; }