From 3a5f07c2c9aa2bfcbd4c58578d964d733f7099a2 Mon Sep 17 00:00:00 2001 From: ache Date: Sat, 25 Apr 1998 00:10:24 +0000 Subject: [PATCH] Fix ctype error #1 - chars must be unsigned --- bin/ls/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ls/util.c b/bin/ls/util.c index 22af4f46efc..44f9ed26bf6 100644 --- a/bin/ls/util.c +++ b/bin/ls/util.c @@ -39,7 +39,7 @@ static char sccsid[] = "@(#)util.c 8.3 (Berkeley) 4/2/94"; #else static const char rcsid[] = - "$Id: util.c,v 1.14 1998/04/24 12:43:26 des Exp $"; + "$Id: util.c,v 1.15 1998/04/24 20:15:43 des Exp $"; #endif #endif /* not lint */ @@ -90,7 +90,7 @@ len_octal(s, len) int r; while (len--) - if (isprint(*s++)) r++; else r += 4; + if (isprint((unsigned char)*s++)) r++; else r += 4; return r; } -- 2.45.2