From: des Date: Tue, 30 Oct 2007 12:54:10 +0000 (+0000) Subject: Use pdiff() X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38215fda1d65f9a49e3ea5db02810287bbaa9e34;p=varnish Use pdiff() git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2209 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_vrt_esi.c b/varnish-cache/bin/varnishd/cache_vrt_esi.c index fcc9f9d5..03b6e8c9 100644 --- a/varnish-cache/bin/varnishd/cache_vrt_esi.c +++ b/varnish-cache/bin/varnishd/cache_vrt_esi.c @@ -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;