In get_content_length(), add a sanity check for mingw32.
authorFabian Keil <fk@fabiankeil.de>
Sun, 6 Sep 2009 14:11:06 +0000 (14:11 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sun, 6 Sep 2009 14:11:06 +0000 (14:11 +0000)
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.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))