From 067321d4af873bb85bbc01b3de4d047a228c7ac8 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sat, 27 Nov 2010 12:51:16 +0100 Subject: [PATCH] fix crash: we want to do is_digit() on *char* not on char* some bug the mimetest found before push. --- libcitadel/lib/mime_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.2