From: Henrik Nordstrom Date: Thu, 22 Oct 2009 21:15:03 +0000 (+0200) Subject: 64-bit filesize issue in squidclient if trying to post a file > 2GB X-Git-Tag: SQUID_3_2_0_1~649 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7fb56e724ad7048fc79fb8cf202b3fd8be33498b;p=thirdparty%2Fsquid.git 64-bit filesize issue in squidclient if trying to post a file > 2GB --- diff --git a/tools/squidclient.cc b/tools/squidclient.cc index 547dfe093d..9dd8a8e4ed 100644 --- a/tools/squidclient.cc +++ b/tools/squidclient.cc @@ -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) {