r505 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Wed Jul 19 21:48:23 CEST 2006
Author: phk
Date: 2006-07-19 21:48:23 +0200 (Wed, 19 Jul 2006)
New Revision: 505
Modified:
trunk/varnish-cache/bin/varnishd/varnishd.c
Log:
Make sure width and precision arguments to printf %*.*s are ints.
Modified: trunk/varnish-cache/bin/varnishd/varnishd.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/varnishd.c 2006-07-19 19:47:29 UTC (rev 504)
+++ trunk/varnish-cache/bin/varnishd/varnishd.c 2006-07-19 19:48:23 UTC (rev 505)
@@ -132,7 +132,7 @@
"backend default {\n"
" set backend.host = \"%*.*s\";\n"
" set backend.port = \"%s\";\n"
- "}\n", p - bflag, p - bflag, bflag, q);
+ "}\n", (int)(p - bflag), (int)(p - bflag), bflag, q);
assert(buf != NULL);
sb = sbuf_new(NULL, NULL, 0, SBUF_AUTOEXTEND);
assert(sb != NULL);
More information about the varnish-commit
mailing list