From: Graham Leggett Date: Mon, 10 Jun 2013 14:49:26 +0000 (+0000) Subject: Use the size of the buffer as opposed to MAX_STRING_LEN. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a520244bae1d381173b9f9903bab999a4e3623ff;p=thirdparty%2Fapache%2Fhttpd.git Use the size of the buffer as opposed to MAX_STRING_LEN. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1491479 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_autoindex.c b/modules/generators/mod_autoindex.c index d0e075782da..19a492eebe2 100644 --- a/modules/generators/mod_autoindex.c +++ b/modules/generators/mod_autoindex.c @@ -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); }