From: Wilfried Goesgens Date: Sat, 27 Nov 2010 11:51:16 +0000 (+0100) Subject: fix crash: we want to do is_digit() on *char* not on char* X-Git-Tag: v8.01~560 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=067321d4af873bb85bbc01b3de4d047a228c7ac8 fix crash: we want to do is_digit() on *char* not on char* some bug the mimetest found before push. --- diff --git a/libcitadel/lib/mime_parser.c b/libcitadel/lib/mime_parser.c index b7249f79e..d71df7775 100644 --- a/libcitadel/lib/mime_parser.c +++ b/libcitadel/lib/mime_parser.c @@ -417,7 +417,7 @@ long parse_MimeHeaders(interesting_mime_headers *m, char* content_start, char *c else if (!strncasecmp(header, "Content-length: ", 15)) { char *clbuf; clbuf = &header[15]; - while (isspace(clbuf)) + while (isspace(*clbuf)) clbuf ++; m->content_length = (size_t) atol(clbuf); }