r3015 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Thu Jul 24 22:16:06 CEST 2008
Author: phk
Date: 2008-07-24 22:16:04 +0200 (Thu, 24 Jul 2008)
New Revision: 3015
Modified:
trunk/varnish-cache/bin/varnishd/cache_vrt_esi.c
Log:
Properly truncate bytes before hexdumping.
Modified: trunk/varnish-cache/bin/varnishd/cache_vrt_esi.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_vrt_esi.c 2008-07-24 12:33:32 UTC (rev 3014)
+++ trunk/varnish-cache/bin/varnishd/cache_vrt_esi.c 2008-07-24 20:16:04 UTC (rev 3015)
@@ -117,7 +117,7 @@
*q++ = 't';
} else {
/* XXX: use %%%02x instead ? */
- q += sprintf(q, "\\x%02x", *p);
+ q += sprintf(q, "\\x%02x", *p & 0xff);
}
p++;
i--;
More information about the varnish-commit
mailing list