summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/display.c4
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