Commit 967111bf authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Properly truncate bytes before hexdumping.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3015 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 124d7701
......@@ -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--;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment