]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Use only standard printf length specifiers. Z is not one of them.
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Mon, 25 Jul 2011 22:17:24 +0000 (00:17 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Mon, 25 Jul 2011 22:17:24 +0000 (00:17 +0200)
compat/xalloc.cc

index f7bcfe22b7d53f953bbe2057b1c075c0165b0906..e148f22bd951c0f3487092589f61733be7ae148f 100644 (file)
@@ -78,7 +78,7 @@ xcalloc(size_t n, size_t sz)
     if (p == NULL) {
         if (failure_notify) {
             static char msg[128];
-            snprintf(msg, 128, "xcalloc: Unable to allocate %Zu blocks of %Zu bytes!\n", n, sz);
+            snprintf(msg, 128, "xcalloc: Unable to allocate %lu blocks of %lu bytes!\n", (unsigned long)n, (unsigned long)sz);
             failure_notify(msg);
         } else {
             perror("xcalloc");