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 */