From 45c1414a2fc04e46a413e62b12bd33d021572abd Mon Sep 17 00:00:00 2001 From: David Shaw Date: Mon, 17 Apr 2006 20:54:15 +0000 Subject: * miscutil.c (make_printable_string): Fix bug where some control characters lose part of their ASCII representation. --- util/miscutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/miscutil.c') diff --git a/util/miscutil.c b/util/miscutil.c index 98c2e8d62..33776b196 100644 --- a/util/miscutil.c +++ b/util/miscutil.c @@ -313,7 +313,7 @@ make_printable_string( const byte *p, size_t n, int delim ) *d++ = '0'; else { sprintf(d, "x%02x", *p ); - d += 2; + d += 3; } } else -- cgit v1.2.3