]> err.no Git - varnish/commitdiff
Make sure width and precision arguments to printf %*.*s are ints.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 19 Jul 2006 19:48:23 +0000 (19:48 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 19 Jul 2006 19:48:23 +0000 (19:48 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@505 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/varnishd.c

index 13c49303e32f39d621ea2dcf001ffaf6745c3a11..b47ea4a0a4bbc2f8571cdae35817a27a2af86202 100644 (file)
@@ -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);