diff options
author | Colm MacCarthaigh <colm@apache.org> | 2007-03-06 02:56:17 +0100 |
---|---|---|
committer | Colm MacCarthaigh <colm@apache.org> | 2007-03-06 02:56:17 +0100 |
commit | 9c70c93e8ac16b2b42bc3a94cfa05b58ad581c11 (patch) | |
tree | ffbad9a8ea2e28618a694271b8b2ca4987af6c45 /support/logresolve.c | |
parent | Correct a spurious access to whatever memory is at location "1" in the (diff) | |
download | apache2-9c70c93e8ac16b2b42bc3a94cfa05b58ad581c11.tar.xz apache2-9c70c93e8ac16b2b42bc3a94cfa05b58ad581c11.zip |
Prevent format specifier busting.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@514953 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/logresolve.c')
-rw-r--r-- | support/logresolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/logresolve.c b/support/logresolve.c index 8a385e0e46..f0310e973b 100644 --- a/support/logresolve.c +++ b/support/logresolve.c @@ -227,7 +227,7 @@ int main(int argc, const char * const argv[]) /* 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++; |