From f2623acbe7639c2c9f2a03738434ae617223e884 Mon Sep 17 00:00:00 2001 From: Liang Chang Date: Mon, 17 May 2021 08:46:04 +0800 Subject: [PATCH] dthelp: Fix a multibyte character parsing issue. --- cde/programs/dthelp/parser/pass2/htag2/custom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cde/programs/dthelp/parser/pass2/htag2/custom.c b/cde/programs/dthelp/parser/pass2/htag2/custom.c index c4a0986b5..8fb442132 100644 --- a/cde/programs/dthelp/parser/pass2/htag2/custom.c +++ b/cde/programs/dthelp/parser/pass2/htag2/custom.c @@ -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 */