Fixed bug in converting wide characters to multibyte.

This commit is contained in:
crs 2004-06-12 20:46:35 +00:00
parent 4836452038
commit a80ddb4a78
1 changed files with 1 additions and 1 deletions

View File

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