From: Jeff Trawick Date: Wed, 14 Mar 2001 02:32:03 +0000 (+0000) Subject: fix a sprintf() format string; use APR_OFF_T_FMT for apr_off_t as %ld X-Git-Tag: 2.0.15~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca7108006bc153a8c02f9bb8c81adbc0bcf5a01f;p=thirdparty%2Fapache%2Fhttpd.git fix a sprintf() format string; use APR_OFF_T_FMT for apr_off_t as %ld doesn't work everywhere (e.g., FreeBSD) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88515 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/dav/fs/repos.c b/modules/dav/fs/repos.c index 7c028377e8e..8dde6f307cc 100644 --- a/modules/dav/fs/repos.c +++ b/modules/dav/fs/repos.c @@ -1775,7 +1775,7 @@ static dav_prop_insert dav_fs_insert_prop(const dav_resource *resource, if (resource->collection) return DAV_PROP_INSERT_NOTDEF; - (void) sprintf(buf, "%ld", resource->info->finfo.size); + (void) sprintf(buf, "%" APR_OFF_T_FMT, resource->info->finfo.size); value = buf; break;