httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r917029 - /httpd/httpd/trunk/support/rotatelogs.c
Date Sat, 27 Feb 2010 19:56:06 GMT
Author: minfrin
Date: Sat Feb 27 19:56:06 2010
New Revision: 917029

URL: http://svn.apache.org/viewvc?rev=917029&view=rev
Log:
Use portable apr_snprintf in rotatelogs.

Modified:
    httpd/httpd/trunk/support/rotatelogs.c

Modified: httpd/httpd/trunk/support/rotatelogs.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/rotatelogs.c?rev=917029&r1=917028&r2=917029&view=diff
==============================================================================
--- httpd/httpd/trunk/support/rotatelogs.c (original)
+++ httpd/httpd/trunk/support/rotatelogs.c Sat Feb 27 19:56:06 2010
@@ -304,10 +304,10 @@
     }
     else {
         if (config->truncate) {
-            snprintf(status->filename, sizeof(status->filename), "%s", config->szLogRoot);
+            apr_snprintf(status->filename, sizeof(status->filename), "%s", config->szLogRoot);
         }
         else {
-            snprintf(status->filename, sizeof(status->filename), "%s.%010d", config->szLogRoot,
+            apr_snprintf(status->filename, sizeof(status->filename), "%s.%010d", config->szLogRoot,
                     tLogStart);
         }
     }



Mime
View raw message