]> granicus.if.org Git - apache/commitdiff
Do printf formatting properly.
authorBen Laurie <ben@apache.org>
Sun, 11 Jun 2000 14:04:52 +0000 (14:04 +0000)
committerBen Laurie <ben@apache.org>
Sun, 11 Jun 2000 14:04:52 +0000 (14:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85514 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_include.c

index 16c1086a07cccb7182c16098e0f96a652a42539e..38f043ba489eade8b62224873436dfdcdfbdac8d 100644 (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))) {