diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-12-16 08:58:15 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-12-16 08:58:15 +0000 |
| commit | ff07b874821f66d7045234ea32f9265fde9c174f (patch) | |
| tree | cceda6ac1651d7854d6db1881d84c645325c8cce | |
| parent | 8e6f104bf27d2e2a63b6e685286084fad28fdcc8 (diff) | |
Notes
| -rw-r--r-- | usr.bin/ftp/fetch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c index 2c9f58c9dda2..2f2450e75b5e 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; } |
