From 6236699f32fa407bbf5e18013898d38eca5001c9 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 24 Jul 2008 20:16:04 +0000 Subject: [PATCH] Properly truncate bytes before hexdumping. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3015 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_vrt_esi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/cache_vrt_esi.c b/varnish-cache/bin/varnishd/cache_vrt_esi.c index ab14deff..315bd394 100644 --- a/varnish-cache/bin/varnishd/cache_vrt_esi.c +++ b/varnish-cache/bin/varnishd/cache_vrt_esi.c @@ -117,7 +117,7 @@ esi_error(const struct esi_work *ew, const char *p, int i, const char *err) *q++ = 't'; } else { /* XXX: use %%%02x instead ? */ - q += sprintf(q, "\\x%02x", *p); + q += sprintf(q, "\\x%02x", *p & 0xff); } p++; i--; -- 2.39.5