summary refs log tree commit diff
path: root/mscan.c
diff options
context:
space:
mode:
Diffstat (limited to 'mscan.c')
-rw-r--r--mscan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mscan.c b/mscan.c
index 470a3ea..2035838 100644
--- a/mscan.c
+++ b/mscan.c
@@ -35,6 +35,8 @@ static char *fflag = default_fflag;
 int
 u8putstr(FILE *out, char *s, ssize_t l, int pad)
 {
+	if (l < 0)
+		l = -l;
 	ssize_t ol = l;
 
 	while (*s && l > 0) {