Do printf formatting properly.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85514 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ben Laurie
2000-06-11 14:04:52 +00:00
parent aec3139edd
commit 854b6e64d2

View File

@ -1193,11 +1193,7 @@ static int handle_fsize(ap_file_t *in, request_rec *r, const char *error, int si
}
else {
int l, x;
#if defined(AP_OFF_T_IS_QUAD)
ap_snprintf(tag, sizeof(tag), "%qd", finfo.size);
#else
ap_snprintf(tag, sizeof(tag), "%ld", (long)finfo.size);
#endif
ap_snprintf(tag, sizeof(tag), "%" APR_OFF_T_FMT, finfo.size);
l = strlen(tag); /* grrr */
for (x = 0; x < l; x++) {
if (x && (!((l - x) % 3))) {