]> granicus.if.org Git - apache/commitdiff
use the right fmt string for finfo.size
authorJeff Trawick <trawick@apache.org>
Sun, 25 Feb 2001 00:38:17 +0000 (00:38 +0000)
committerJeff Trawick <trawick@apache.org>
Sun, 25 Feb 2001 00:38:17 +0000 (00:38 +0000)
Submitted by: Greg Stein and gcc on FreeBSD

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

modules/cache/mod_file_cache.c

index fff8011d1cc5a315f150df3692278521d19c1fe0..3e4f7a01df85a511195d46198df162aed804c90d 100644 (file)
@@ -219,7 +219,7 @@ static const char *cachefile(cmd_parms *cmd, void *dummy, const char *filename)
     tmp.file = fd;
     tmp.filename = apr_pstrdup(cmd->pool, filename);
     apr_rfc822_date(tmp.mtimestr, tmp.finfo.mtime);
-    apr_snprintf(tmp.sizestr, sizeof tmp.sizestr, "%lu", tmp.finfo.size);
+    apr_snprintf(tmp.sizestr, sizeof tmp.sizestr, "%" APR_OFF_T_FMT, tmp.finfo.size);
     sconf = ap_get_module_config(cmd->server->module_config, &file_cache_module);
     new_file = apr_array_push(sconf->files);
     *new_file = tmp;
@@ -277,7 +277,7 @@ static const char *mmapfile(cmd_parms *cmd, void *dummy, const char *filename)
     apr_file_close(fd);
     tmp.filename = fspec;
     apr_rfc822_date(tmp.mtimestr, tmp.finfo.mtime);
-    apr_snprintf(tmp.sizestr, sizeof tmp.sizestr, "%lu", tmp.finfo.size);
+    apr_snprintf(tmp.sizestr, sizeof tmp.sizestr, "%" APR_OFF_T_FMT, tmp.finfo.size);
     sconf = ap_get_module_config(cmd->server->module_config, &file_cache_module);
     new_file = apr_array_push(sconf->files);
     *new_file = tmp;