From 7fb56e724ad7048fc79fb8cf202b3fd8be33498b Mon Sep 17 00:00:00 2001 From: Henrik Nordstrom Date: Thu, 22 Oct 2009 23:15:03 +0200 Subject: [PATCH] 64-bit filesize issue in squidclient if trying to post a file > 2GB --- tools/squidclient.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.47.2