1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

dthelp: Fix a multibyte character parsing issue.

This commit is contained in:
Liang Chang 2021-05-17 08:46:04 +08:00
parent 6a26b02606
commit f2623acbe7

View file

@ -167,6 +167,7 @@ do {
{
mbyte[length++] = c;
mbyte[length] = 0;
mblen(NULL, 0);
if (mblen(mbyte,length) != -1) break; /* hurray! */
if (length == MB_CUR_MAX)
{ /* reached max without a hit */