From def547e44b817a959280a96ca921b554945da5b6 Mon Sep 17 00:00:00 2001
From: Lee <ler762@users.sourceforge.net>
Date: Sun, 5 Jul 2009 20:43:14 +0000
Subject: [PATCH] Fixes Bugs item #2816541 - http download stops at 0.3GB
 (mingw32)   Microsoft has their own way - %I64U instead of %llu for long long
 unsigned.

---
 parsers.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/parsers.c b/parsers.c
index 27e3db62..bb45a7b4 100644
--- a/parsers.c
+++ b/parsers.c
@@ -1,4 +1,4 @@
-const char parsers_rcs[] = "$Id: parsers.c,v 1.188 2009/07/05 12:02:54 fabiankeil Exp $";
+const char parsers_rcs[] = "$Id: parsers.c,v 1.189 2009/07/05 12:04:46 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/parsers.c,v $
@@ -2163,7 +2163,11 @@ static jb_err server_save_content_length(struct client_state *csp, char **header
 
    assert(*(*header+14) == ':');
 
+#ifdef _WIN32
+   if (1 != sscanf(*header+14, ": %I64u", &content_length))
+#else
    if (1 != sscanf(*header+14, ": %llu", &content_length))
+#endif
    {
       log_error(LOG_LEVEL_ERROR, "Crunching invalid header: %s", *header);
       freez(*header);
-- 
2.49.0