From: msw Date: Wed, 18 Dec 2002 03:48:01 +0000 (+0000) Subject: when updating the help text, be sure to get all of the bytes from multibyte strings X-Git-Tag: r0-51-2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e7a65b73031db61d20b9a65510ec3363536c891b;p=thirdparty%2Fnewt.git when updating the help text, be sure to get all of the bytes from multibyte strings --- diff --git a/newt.c b/newt.c index f868cdf..9a1e73e 100644 --- a/newt.c +++ b/newt.c @@ -632,7 +632,7 @@ void newtRedrawHelpLine(void) { buf[SLtt_Screen_Cols] = '\0'; if (currentHelpline) { - int len = strlen(*currentHelpline); + int len = wstrlen(*currentHelpline, -1); if (SLtt_Screen_Cols < len) len = SLtt_Screen_Cols; memcpy(buf, *currentHelpline, len);