[4.0] 05765d4 %hh length modifier added for non-printabale chars.
Lasse Karstensen
lkarsten at varnish-software.com
Thu Jan 15 16:35:43 CET 2015
commit 05765d4be29b0717086cccd827b953585fd23640
Author: arianna-aondio <arianna.aondio at varnish-software.com>
Date: Fri Dec 19 10:04:00 2014 +0100
%hh length modifier added for non-printabale chars.
diff --git a/bin/varnishncsa/varnishncsa.c b/bin/varnishncsa/varnishncsa.c
index dcda6e5..6e01e60 100644
--- a/bin/varnishncsa/varnishncsa.c
+++ b/bin/varnishncsa/varnishncsa.c
@@ -222,7 +222,7 @@ vsb_esc_cat(struct vsb *sb, const char *b, const char *e)
break;
}
} else
- VSB_printf(sb, "\\x%02x", *b);
+ VSB_printf(sb, "\\x%02hhx", *b);
}
return (VSB_error(sb));
More information about the varnish-commit
mailing list