summaryrefslogtreecommitdiffstats
path: root/usr.bin/ftp
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-12-16 08:58:15 +0000
committerache <ache@FreeBSD.org>1997-12-16 08:58:15 +0000
commit1d90974832ccb738d2741f998b37cc89e4fa3ecb (patch)
tree925080e8a6494fd6b29030454922ed98df55d074 /usr.bin/ftp
parent57d8708b904f96b497b311982762ec0fd41de087 (diff)
downloadFreeBSD-src-1d90974832ccb738d2741f998b37cc89e4fa3ecb.zip
FreeBSD-src-1d90974832ccb738d2741f998b37cc89e4fa3ecb.tar.gz
One more ctype cast
Diffstat (limited to 'usr.bin/ftp')
-rw-r--r--usr.bin/ftp/fetch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c
index 2c9f58c..2f2450e 100644
--- a/usr.bin/ftp/fetch.c
+++ b/usr.bin/ftp/fetch.c
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$Id: fetch.c,v 1.3 1997/12/13 20:38:16 pst Exp $");
+__RCSID("$Id: fetch.c,v 1.4 1997/12/16 08:22:35 ache Exp $");
__RCSID_SOURCE("$NetBSD: fetch.c,v 1.16.2.1 1997/11/18 01:00:22 mellon Exp $");
#endif /* not lint */
@@ -285,7 +285,7 @@ url_get(origline, proxyenv)
*/
#define CONTENTLEN "Content-Length: "
for (cp = buf; *cp != '\0'; cp++) {
- if (tolower(*cp) == 'c' &&
+ if (tolower((unsigned char)*cp) == 'c' &&
strncasecmp(cp, CONTENTLEN, sizeof(CONTENTLEN) - 1) == 0)
break;
}
OpenPOWER on IntegriCloud