Commit 875738ed authored by Jeff Trawick's avatar Jeff Trawick
Browse files

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
parent 280fedae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;