httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r708655 - /httpd/httpd/trunk/modules/mappers/mod_rewrite.c
Date Tue, 28 Oct 2008 20:11:44 GMT
Author: jorton
Date: Tue Oct 28 13:11:43 2008
New Revision: 708655

URL: http://svn.apache.org/viewvc?rev=708655&view=rev
Log:
* modules/mappers/mod_rewrite.c (do_rewritelog): Add prototype with
  printf attribute flagged so that gcc -Wformat-security will pick
  up PR 46110-type errors as a warning.

Modified:
    httpd/httpd/trunk/modules/mappers/mod_rewrite.c

Modified: httpd/httpd/trunk/modules/mappers/mod_rewrite.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/mappers/mod_rewrite.c?rev=708655&r1=708654&r2=708655&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/mappers/mod_rewrite.c (original)
+++ httpd/httpd/trunk/modules/mappers/mod_rewrite.c Tue Oct 28 13:11:43 2008
@@ -474,6 +474,10 @@
 
 static void do_rewritelog(request_rec *r, int level, char *perdir,
                           const char *fmt, ...)
+        __attribute__((format(printf,4,5)));
+
+static void do_rewritelog(request_rec *r, int level, char *perdir,
+                          const char *fmt, ...)
 {
     rewrite_server_conf *conf;
     char *logline, *text;



Mime
View raw message