Commit d2289b8b authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make sure width and precision arguments to printf %*.*s are ints.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@505 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent e7b3665e
......@@ -132,7 +132,7 @@ vcl_default(const char *bflag)
"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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment