]> granicus.if.org Git - apache/commitdiff
increase size of error string buffer passed to apr_strerror();
authorJeff Trawick <trawick@apache.org>
Mon, 11 Dec 2006 19:08:40 +0000 (19:08 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 11 Dec 2006 19:08:40 +0000 (19:08 +0000)
120 is the size most frequently used in Apache; APR provides no
hints

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@485828 13f79535-47bb-0310-9956-ffa450edef68

support/rotatelogs.c

index bfc8e119405e8109d7afde563ad32823b65293ce..c6f990493858f0d46efccb34b256cb8051d3c7b0 100644 (file)
@@ -212,7 +212,7 @@ int main (int argc, const char * const argv[])
             rv = apr_file_open(&nLogFD, buf2, APR_WRITE | APR_CREATE | APR_APPEND,
                                APR_OS_DEFAULT, pool);
             if (rv != APR_SUCCESS) {
-                char error[26];
+                char error[120];
 
                 apr_strerror(rv, error, sizeof error);