Module Name:    src
Committed By:   joerg
Date:           Wed Feb 29 23:38:46 UTC 2012

Modified Files:
        src/libexec/httpd: dir-index-bozo.c

Log Message:
Avoid using computed string as format string, just print it as string.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/libexec/httpd/dir-index-bozo.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/libexec/httpd/dir-index-bozo.c
diff -u src/libexec/httpd/dir-index-bozo.c:1.13 src/libexec/httpd/dir-index-bozo.c:1.14
--- src/libexec/httpd/dir-index-bozo.c:1.13	Fri Nov 18 09:51:31 2011
+++ src/libexec/httpd/dir-index-bozo.c	Wed Feb 29 23:38:46 2012
@@ -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, 
 		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, 
 			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)));

Reply via email to