diff options
author | des <des@FreeBSD.org> | 2008-02-06 11:39:55 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2008-02-06 11:39:55 +0000 |
commit | d129ae8c34e8048ee4b26dd9af0f14069593357a (patch) | |
tree | 651f9d9cdeb5ef70de4780778701e054d74f3d5b | |
parent | c3c8edd3bd8485f558c80217df56d9875fcc0c8d (diff) | |
download | FreeBSD-src-d129ae8c34e8048ee4b26dd9af0f14069593357a.zip FreeBSD-src-d129ae8c34e8048ee4b26dd9af0f14069593357a.tar.gz |
Add necessary cast for tolower() argument.
Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de>
MFC after: 1 week
-rw-r--r-- | lib/libfetch/http.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c index 2ee76e2..a5499c6 100644 --- a/lib/libfetch/http.c +++ b/lib/libfetch/http.c @@ -150,7 +150,7 @@ http_new_chunk(struct httpio *io) *p - '0'; } else { io->chunksize = io->chunksize * 16 + - 10 + tolower(*p) - 'a'; + 10 + tolower((unsigned char)*p) - 'a'; } } @@ -434,7 +434,8 @@ http_get_reply(conn_t *conn) static const char * http_match(const char *str, const char *hdr) { - while (*str && *hdr && tolower(*str++) == tolower(*hdr++)) + while (*str && *hdr && + tolower((unsigned char)*str++) == tolower((unsigned char)*hdr++)) /* nothing */; if (*str || *hdr != ':') return (NULL); |