]> err.no Git - varnish/commitdiff
Use a proper format string.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 20 Oct 2008 20:19:12 +0000 (20:19 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 20 Oct 2008 20:19:12 +0000 (20:19 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3344 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishncsa/varnishncsa.c

index 33d640a9caaba99d15c6fafedf02dfdc144c77bb..7cf88a55df645e2501b8eec1e5fd963d82cc3b62 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);