Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/httpd Avoid using computed string as format string, ...
details: https://anonhg.NetBSD.org/src/rev/b4684b5c8327
branches: trunk
changeset: 777684:b4684b5c8327
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Feb 29 23:38:46 2012 +0000
description:
Avoid using computed string as format string, just print it as string.
diffstat:
libexec/httpd/dir-index-bozo.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6af9994ae282 -r b4684b5c8327 libexec/httpd/dir-index-bozo.c
--- a/libexec/httpd/dir-index-bozo.c Wed Feb 29 23:37:07 2012 +0000
+++ b/libexec/httpd/dir-index-bozo.c Wed Feb 29 23:38:46 2012 +0000
@@ -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 @@
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 @@
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)));
Home |
Main Index |
Thread Index |
Old Index