]> err.no Git - varnish/commitdiff
Merge r3344: Use a proper format string.
authortfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 10 Nov 2008 10:10:09 +0000 (10:10 +0000)
committertfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 10 Nov 2008 10:10:09 +0000 (10:10 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3371 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishncsa/varnishncsa.c

index 69b8df568fed670c1d0bd597f0668a8827ad244e..4655767e2acbeb32f0ebdfeabf33f6039b750a83 100644 (file)
@@ -441,7 +441,7 @@ h_ncsa(void *priv, enum shmlogtag tag, unsigned fd,
                if (lp->df_Host) {
                        if (strncmp(lp->df_Host, "http://", 7) != 0)
                                fprintf(fo, "http://");
-                       fprintf(fo, lp->df_Host);
+                       fprintf(fo, "%s", lp->df_Host);
                }
                fprintf(fo, "%s ", lp->df_Uq);
                fprintf(fo, "%s\" ", lp->df_H);