diff options
author | ache <ache@FreeBSD.org> | 1997-12-16 08:22:37 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-12-16 08:22:37 +0000 |
commit | 57d8708b904f96b497b311982762ec0fd41de087 (patch) | |
tree | e9d380820db9f346d691557dc1b7ff9eceef112a /usr.bin/ftp/ftp.c | |
parent | 126c5b135890ca392234b124346ac9a224f2ca4b (diff) | |
download | FreeBSD-src-57d8708b904f96b497b311982762ec0fd41de087.zip FreeBSD-src-57d8708b904f96b497b311982762ec0fd41de087.tar.gz |
Add more (unsigned char) casts to ctype macros
Diffstat (limited to 'usr.bin/ftp/ftp.c')
-rw-r--r-- | usr.bin/ftp/ftp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ftp/ftp.c b/usr.bin/ftp/ftp.c index 60482d0..305acd1 100644 --- a/usr.bin/ftp/ftp.c +++ b/usr.bin/ftp/ftp.c @@ -1,4 +1,4 @@ -/* $Id$ */ +/* $Id: ftp.c,v 1.11 1997/12/13 20:38:17 pst Exp $ */ /* $NetBSD: ftp.c,v 1.29.2.1 1997/11/18 01:01:04 mellon Exp $ */ /* @@ -39,7 +39,7 @@ #if 0 static char sccsid[] = "@(#)ftp.c 8.6 (Berkeley) 10/27/94"; #else -__RCSID("$Id$"); +__RCSID("$Id: ftp.c,v 1.11 1997/12/13 20:38:17 pst Exp $"); __RCSID_SOURCE("$NetBSD: ftp.c,v 1.29.2.1 1997/11/18 01:01:04 mellon Exp $"); #endif #endif /* not lint */ @@ -325,11 +325,11 @@ getreply(expecteof) printf("%s:", hostname); (void)putchar(c); } - if (dig < 4 && isdigit(c)) + if (dig < 4 && isdigit((unsigned char)c)) code = code * 10 + (c - '0'); if (!pflag && code == 227) pflag = 1; - if (dig > 4 && pflag == 1 && isdigit(c)) + if (dig > 4 && pflag == 1 && isdigit((unsigned char)c)) pflag = 2; if (pflag == 2) { if (c != '\r' && c != ')') |