diff options
author | Alexander Naumov <alexander_naumov@opensuse.org> | 2022-01-15 06:43:32 +0200 |
---|---|---|
committer | Alexander Naumov <alexander_naumov@opensuse.org> | 2022-01-15 06:43:32 +0200 |
commit | 1176586e722a982d6669b1ab3550f7326dc973c6 (patch) | |
tree | a6d9bd342b3833707161f8401dfda48f931fdddd | |
parent | 19d60fc56274e38bebf1c7a45e5981e794031dea (diff) | |
download | screen-1176586e722a982d6669b1ab3550f7326dc973c6.tar.gz |
strlen_onscreen() expects unsinged char *
-rw-r--r-- | src/display.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display.c b/src/display.c index d0ed6a4..2943af1 100644 --- a/src/display.c +++ b/src/display.c @@ -2315,7 +2315,7 @@ RefreshHStatus() { char *buf; #ifdef UTF8 - int extrabytes = strlen(hstatusstring) - strlen_onscreen(hstatusstring, NULL); + int extrabytes = strlen(hstatusstring) - strlen_onscreen((unsigned char *)hstatusstring, NULL); #else int extrabytes = 0; #endif @@ -2418,7 +2418,7 @@ int y, from, to, isblank; if (y == cv->c_ye + 1 && from >= cv->c_xs && from <= cv->c_xe) { #ifdef UTF8 - int extrabytes = strlen(captionstring) - strlen_onscreen(captionstring, NULL); + int extrabytes = strlen(captionstring) - strlen_onscreen((unsigned char *)captionstring, NULL); #else int extrabytes = 0; #endif |