fix crash: we want to do is_digit() on *char* not on char*
authorWilfried Goesgens <dothebart@citadel.org>
Sat, 27 Nov 2010 11:51:16 +0000 (12:51 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 27 Nov 2010 12:58:53 +0000 (13:58 +0100)
some bug the mimetest found before push.

libcitadel/lib/mime_parser.c

index b7249f79ec215b941643dc1f0abde569ce282dc8..d71df777575378f14576835d81a43a29364f5e96 100644 (file)
@@ -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);
                        }