diff options
author | ache <ache@FreeBSD.org> | 1998-04-25 00:10:24 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1998-04-25 00:10:24 +0000 |
commit | 3a5f07c2c9aa2bfcbd4c58578d964d733f7099a2 (patch) | |
tree | 6bf21420ad263de3af595805afb725783181a9ae | |
parent | f02dfd0f986b431c720e16cd4b7647118abe09a3 (diff) | |
download | FreeBSD-src-3a5f07c2c9aa2bfcbd4c58578d964d733f7099a2.zip FreeBSD-src-3a5f07c2c9aa2bfcbd4c58578d964d733f7099a2.tar.gz |
Fix ctype error #1 - chars must be unsigned
-rw-r--r-- | bin/ls/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ls/util.c b/bin/ls/util.c index 22af4f4..44f9ed2 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; } |