[master] aed3e68 Fix another warning spotted on FreeBSD

Federico G. Schwindt fgsch at lodoss.net
Mon Dec 14 20:29:18 CET 2015


commit aed3e68fd0c32904c1435cf010789d29883600e6
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Mon Dec 14 19:28:28 2015 +0000

    Fix another warning spotted on FreeBSD

diff --git a/bin/varnishstat/varnishstat_curses.c b/bin/varnishstat/varnishstat_curses.c
index 1c90652..a27d438 100644
--- a/bin/varnishstat/varnishstat_curses.c
+++ b/bin/varnishstat/varnishstat_curses.c
@@ -934,7 +934,7 @@ draw_bar_b(void)
 	    page_start + l_points < n_ptarray ?
 		page_start + l_points : n_ptarray,
 	    n_ptarray);
-	mvwprintw(w_bar_b, 0, X - strlen(buf), buf);
+	mvwprintw(w_bar_b, 0, X - strlen(buf), "%s", buf);
 	X -= strlen(buf) + 2;
 
 	level = VSC_LevelDesc(verbosity);



More information about the varnish-commit mailing list