]> granicus.if.org Git - apache/commitdiff
Correct the use of the printf formatter.
authorGraham Leggett <minfrin@apache.org>
Mon, 17 Jun 2013 20:34:26 +0000 (20:34 +0000)
committerGraham Leggett <minfrin@apache.org>
Mon, 17 Jun 2013 20:34:26 +0000 (20:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1493925 13f79535-47bb-0310-9956-ffa450edef68

modules/cache/mod_socache_shmcb.c

index ceb6bdcf31f0461e1218180ea06fce4e7f022bde..d01d6515f214b86c5f06b41d9ac1aff179e3b5ca 100644 (file)
@@ -316,11 +316,9 @@ static const char *socache_shmcb_create(ap_socache_instance_t **context,
         }
 
         if (ctx->shm_size >= SHMCB_MAX_SIZE) {
-            return apr_psprintf(tmp,
-                                "Invalid argument: size has "
-                                "to be < %d bytes on this platform",
-                                SHMCB_MAX_SIZE);
-
+            return apr_psprintf(tmp, "Invalid argument: size has "
+                    "to be < %" APR_SIZE_T_FMT " bytes on this platform",
+                    SHMCB_MAX_SIZE);
         }
     }
     else if (cp2 >= path && *cp2 == ')') {