]> err.no Git - varnish/commitdiff
Use pdiff()
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 30 Oct 2007 12:54:10 +0000 (12:54 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 30 Oct 2007 12:54:10 +0000 (12:54 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2209 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_vrt_esi.c

index fcc9f9d50fbb206761ce72a2820054bea9bf79d3..03b6e8c94e379d36e2ac5eeeed8e547fbc6a7867 100644 (file)
@@ -319,8 +319,8 @@ esi_addinclude(struct esi_work *ew, txt t)
 
                        u = WS_Reserve(ws, 0);
                        v = snprintf(ws->f, u - 1, "%.*s%.*s",
-                           tag.e - tag.b, tag.b,
-                           val.e - val.b, val.b);
+                           pdiff(tag.b, tag.e), tag.b,
+                           pdiff(val.b, val.e), val.b);
                        v++;
                        xxxassert(v < u);
                        eb->include.b = ws->f;