Commit e5e6cca0 authored by Joe Orton's avatar Joe Orton
Browse files

* 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.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@708655 13f79535-47bb-0310-9956-ffa450edef68
parent 92b9c670
Loading
Loading
Loading
Loading
+4 −0
Changes for modules/mappers/mod_rewrite.c: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -472,6 +472,10 @@ static int open_rewritelog(server_rec *s, apr_pool_t *p)
    return 1;
}

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, ...)
{