]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Reduce stack usage, 32 bytes are enough here, no need to take 8k in the stack. (19...
authorChristophe Jaillet <jailletc36@apache.org>
Sun, 9 Jun 2013 13:52:17 +0000 (13:52 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sun, 9 Jun 2013 13:52:17 +0000 (13:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1491221 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_autoindex.c

index 78a774ef1537cfd5522fe00836ba80393f65432b..d0e075782da81c8466e901ea7fbe862a721604e7 100644 (file)
@@ -1840,7 +1840,7 @@ static void output_directories(struct ent **ar, int n,
             ap_rputs(" ", r);
             if (!(autoindex_opts & SUPPRESS_LAST_MOD)) {
                 if (ar[x]->lm != -1) {
-                    char time_str[MAX_STRING_LEN];
+                    char time_str[32];
                     apr_time_exp_t ts;
                     apr_time_exp_lt(&ts, ar[x]->lm);
                     apr_strftime(time_str, &rv, MAX_STRING_LEN,