httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r514953 - /httpd/httpd/trunk/support/logresolve.c
Date Tue, 06 Mar 2007 01:56:18 GMT
Author: colm
Date: Mon Mar  5 17:56:17 2007
New Revision: 514953

URL: http://svn.apache.org/viewvc?view=rev&rev=514953
Log:
Prevent format specifier busting.

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

Modified: httpd/httpd/trunk/support/logresolve.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/logresolve.c?view=diff&rev=514953&r1=514952&r2=514953
==============================================================================
--- httpd/httpd/trunk/support/logresolve.c (original)
+++ httpd/httpd/trunk/support/logresolve.c Mon Mar  5 17:56:17 2007
@@ -227,7 +227,7 @@
         /* See if we have it in our cache */
         hostname = (char *) apr_hash_get(cache, line, APR_HASH_KEY_STRING);
         if (hostname) {
-            apr_file_printf(outfile, hostname);
+            apr_file_printf(outfile, "%s", hostname);
             if (space) 
                 apr_file_printf(outfile, " %s", space + 1);
             cachehits++;



Mime
View raw message