projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e14fab6
)
In get_content_length(), add a sanity check for mingw32.
author
Fabian Keil
<fk@fabiankeil.de>
Sun, 6 Sep 2009 14:11:06 +0000
(14:11 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Sun, 6 Sep 2009 14:11:06 +0000
(14:11 +0000)
parsers.c
patch
|
blob
|
history
diff --git
a/parsers.c
b/parsers.c
index
9aae353
..
1fb9983
100644
(file)
--- a/
parsers.c
+++ b/
parsers.c
@@
-1,4
+1,4
@@
-const char parsers_rcs[] = "$Id: parsers.c,v 1.20
7 2009/08/20 15:27:03
fabiankeil Exp $";
+const char parsers_rcs[] = "$Id: parsers.c,v 1.20
8 2009/09/06 14:10:07
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/parsers.c,v $
/*********************************************************************
*
* 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(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))
if (1 != sscanf(header+14, ": %I64u", length))
#else
if (1 != sscanf(header+14, ": %llu", length))