From: Fabian Keil Date: Sun, 6 Sep 2009 14:11:06 +0000 (+0000) Subject: In get_content_length(), add a sanity check for mingw32. X-Git-Tag: v_3_0_15~82 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=750eb4bc751e04edc79bf1537a931c553e119876 In get_content_length(), add a sanity check for mingw32. --- diff --git a/parsers.c b/parsers.c index 9aae3534..1fb9983f 100644 --- a/parsers.c +++ b/parsers.c @@ -1,4 +1,4 @@ -const char parsers_rcs[] = "$Id: parsers.c,v 1.207 2009/08/20 15:27:03 fabiankeil Exp $"; +const char parsers_rcs[] = "$Id: parsers.c,v 1.208 2009/09/06 14:10:07 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/parsers.c,v $ @@ -1774,6 +1774,7 @@ static jb_err get_content_length(const char *header, unsigned long long *length) assert(header[14] == ':'); #ifdef _WIN32 + assert(sizeof(unsigned long long) > 4); if (1 != sscanf(header+14, ": %I64u", length)) #else if (1 != sscanf(header+14, ": %llu", length))