One more ctype cast

This commit is contained in:
Andrey A. Chernov 1997-12-16 08:58:15 +00:00
parent 8e6f104bf2
commit ff07b87482

View File

@ -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;
}