Commit 2794a742 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Lasse Karstensen

Only ... hexdumps if they are longer than 8 digits

parent b7f35ba4
......@@ -517,7 +517,7 @@ VSB_quote(struct vsb *s, const void *v, int len, int how)
if (*w != 0x00)
break;
VSB_printf(s, "0x");
if (w == u + len) {
if (w == u + len && len > 4) {
VSB_printf(s, "0...0");
} else {
for (w = u; w < u + len; w++)
......
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