]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
when updating the help text, be sure to get all of the bytes from multibyte strings
authormsw <msw>
Wed, 18 Dec 2002 03:48:01 +0000 (03:48 +0000)
committermsw <msw>
Wed, 18 Dec 2002 03:48:01 +0000 (03:48 +0000)
newt.c

diff --git a/newt.c b/newt.c
index f868cdf4fd72665fcc8d9e22cf380e7972516a20..9a1e73e9a188ff5d6d56d32bd6538fba4ecb9bf8 100644 (file)
--- 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);