mirror of
https://github.com/apache/httpd.git
synced 2025-08-20 16:09:55 +00:00
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:
@ -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))) {
|
||||
|
Reference in New Issue
Block a user