summaryrefslogtreecommitdiffstats
path: root/support/logresolve.c
diff options
context:
space:
mode:
authorColm MacCarthaigh <colm@apache.org>2007-03-06 02:56:17 +0100
committerColm MacCarthaigh <colm@apache.org>2007-03-06 02:56:17 +0100
commit9c70c93e8ac16b2b42bc3a94cfa05b58ad581c11 (patch)
treeffbad9a8ea2e28618a694271b8b2ca4987af6c45 /support/logresolve.c
parentCorrect a spurious access to whatever memory is at location "1" in the (diff)
downloadapache2-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.c2
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++;