]> granicus.if.org Git - apache/commitdiff
follow-up to r1542533:
authorJeff Trawick <trawick@apache.org>
Mon, 18 Nov 2013 12:52:03 +0000 (12:52 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 18 Nov 2013 12:52:03 +0000 (12:52 +0000)
fix format string (unsigned vs. size_t)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1543020 13f79535-47bb-0310-9956-ffa450edef68

support/ab.c

index 1b3e13d0f1b511411d9148a23ec17d27219b5203..a407ca06d2c1b9efbc579215de6826afee6e468a 100644 (file)
@@ -418,7 +418,8 @@ static char *xstrdup(const char *s)
 {
     char *ret = strdup(s);
     if (ret == NULL) {
-        fprintf(stderr, "Could not allocate memory (%u bytes)\n", strlen(s));
+        fprintf(stderr, "Could not allocate memory (%"
+                APR_SIZE_T_FMT " bytes)\n", strlen(s));
         exit(1);
     }
     return ret;