]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
64-bit filesize issue in squidclient if trying to post a file > 2GB
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Thu, 22 Oct 2009 21:15:03 +0000 (23:15 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Thu, 22 Oct 2009 21:15:03 +0000 (23:15 +0200)
tools/squidclient.cc

index 547dfe093de34ffc3e021c5f191adede1955e34c..9dd8a8e4edad5251fbe5f7b165782a21c560f479 100644 (file)
@@ -387,7 +387,7 @@ main(int argc, char *argv[])
             strcat(msg, buf);
         }
         if (put_fd > 0) {
-            snprintf(buf, BUFSIZ, "Content-length: %d\r\n", (int) sb.st_size);
+            snprintf(buf, BUFSIZ, "Content-length: %ld\r\n", (long int) sb.st_size);
             strcat(msg, buf);
         }
         if (opt_noaccept == 0) {