aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--util/ChangeLog5
-rw-r--r--util/miscutil.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/util/ChangeLog b/util/ChangeLog
index 366f4c1be..475458c1e 100644
--- a/util/ChangeLog
+++ b/util/ChangeLog
@@ -1,3 +1,8 @@
+2006-04-17 David Shaw <[email protected]>
+
+ * miscutil.c (make_printable_string): Fix bug where some control
+ characters lose part of their ASCII representation.
+
2006-04-11 David Shaw <[email protected]>
* memory.c (realloc): Revert m_guard fix and stick an #error in
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