summaryrefslogtreecommitdiff
path: root/libexec/httpd
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2012-02-29 23:38:46 +0000
committerjoerg <joerg@NetBSD.org>2012-02-29 23:38:46 +0000
commitdf86591cb08ca2cb0fd8fef0dbe2f612f9e22fbc (patch)
tree7d9a5b295a62554ffa994b7c3b507bbb4ba334c9 /libexec/httpd
parente7a48b764bde2191e1492e42434773eec541b755 (diff)
Avoid using computed string as format string, just print it as string.
Diffstat (limited to 'libexec/httpd')
-rw-r--r--libexec/httpd/dir-index-bozo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/httpd/dir-index-bozo.c b/libexec/httpd/dir-index-bozo.c
index e32fcbc1f85..466c8d0dd47 100644
--- a/libexec/httpd/dir-index-bozo.c
+++ b/libexec/httpd/dir-index-bozo.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dir-index-bozo.c,v 1.13 2011/11/18 09:51:31 mrg Exp $ */
+/* $NetBSD: dir-index-bozo.c,v 1.14 2012/02/29 23:38:46 joerg Exp $ */
/* $eterna: dir-index-bozo.c,v 1.20 2011/11/18 09:21:15 mrg Exp $ */
@@ -162,7 +162,7 @@ bozo_dir_index(bozo_httpreq_t *request, const char *dirname, int isindex)
i++;
memset(spacebuf, ' ', (size_t)i);
spacebuf[i] = '\0';
- bozo_printf(httpd, spacebuf);
+ bozo_printf(httpd, "%s", spacebuf);
l += i;
if (nostat)
@@ -180,7 +180,7 @@ bozo_dir_index(bozo_httpreq_t *request, const char *dirname, int isindex)
i++;
memset(spacebuf, ' ', (size_t)i);
spacebuf[i] = '\0';
- bozo_printf(httpd, spacebuf);
+ bozo_printf(httpd, "%s", spacebuf);
bozo_printf(httpd, "%7ukB",
((unsigned)((unsigned)(sb.st_size) >> 10)));