current parsers.c,1.311,1.312
Fabian Keil via ijbswa-commits <[email protected]> Thu, 08 Jun 2017 13:13:28 +0000
| Newsgroups | gmane.comp.web.privoxy.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ijbswa/current
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv1162
Modified Files:
parsers.c
Log Message:
get_content_length(): Replace an assertion with a compile-time check
Index: parsers.c
===================================================================
RCS file: /cvsroot/ijbswa/current/parsers.c,v
retrieving revision 1.311
retrieving revision 1.312
diff -C2 -d -r1.311 -r1.312
*** parsers.c 24 Dec 2016 16:00:49 -0000 1.311
--- parsers.c 8 Jun 2017 13:13:26 -0000 1.312
***************
*** 1817,1821 ****
{
#ifdef _WIN32
! assert(sizeof(unsigned long long) > 4);
if (1 != sscanf(header_value, "%I64u", length))
#else
--- 1817,1823 ----
{
#ifdef _WIN32
! #if SIZEOF_LONG_LONG < 8
! #error sizeof(unsigned long long) too small
! #endif
if (1 != sscanf(header_value, "%I64u", length))
#else
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot