summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--call/call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/call/call.c b/call/call.c
index 022f6a3..790318e 100644
--- a/call/call.c
+++ b/call/call.c
@@ -189,7 +189,7 @@ static int widthchar(char *s, size_t bytes, int xpos)
/*
* Note: Actually need to check if bad UTF8 characters show as ?
*/
- if (iconv(utf8towchart, &s, &bytes, &outbuf, &outsize)< 0)
+ if (iconv(utf8towchart, &s, &bytes, &outbuf, &outsize) == (size_t) -1)
return 0;
if (c == 9) {
return 8 - (xpos & 7);