]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Use the size of the buffer as opposed to MAX_STRING_LEN.
authorGraham Leggett <minfrin@apache.org>
Mon, 10 Jun 2013 14:49:26 +0000 (14:49 +0000)
committerGraham Leggett <minfrin@apache.org>
Mon, 10 Jun 2013 14:49:26 +0000 (14:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1491479 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_autoindex.c

index d0e075782da81c8466e901ea7fbe862a721604e7..19a492eebe2ea4d828f3ae642ca10b23b5b57853 100644 (file)
@@ -1843,7 +1843,7 @@ static void output_directories(struct ent **ar, int n,
                     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,
+                    apr_strftime(time_str, &rv, sizeof(time_str),
                                 "%Y-%m-%d %H:%M  ", &ts);
                     ap_rputs(time_str, r);
                 }