* miscutil.c (make_printable_string): Fix bug where some control
authorDavid Shaw <dshaw@jabberwocky.com>
Mon, 17 Apr 2006 20:54:15 +0000 (20:54 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Mon, 17 Apr 2006 20:54:15 +0000 (20:54 +0000)
characters lose part of their ASCII representation.

util/ChangeLog
util/miscutil.c

index 366f4c1..475458c 100644 (file)
@@ -1,3 +1,8 @@
+2006-04-17  David Shaw  <dshaw@jabberwocky.com>
+
+       * miscutil.c (make_printable_string): Fix bug where some control
+       characters lose part of their ASCII representation.
+
 2006-04-11  David Shaw  <dshaw@jabberwocky.com>
 
        * memory.c (realloc): Revert m_guard fix and stick an #error in
index 98c2e8d..33776b1 100644 (file)
@@ -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