aboutsummaryrefslogtreecommitdiffstats
path: root/util/miscutil.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2006-04-17 20:54:15 +0000
committerDavid Shaw <[email protected]>2006-04-17 20:54:15 +0000
commit45c1414a2fc04e46a413e62b12bd33d021572abd (patch)
tree41064b2f6c3ca5e1d0ae4e158812a1f08aee2ea3 /util/miscutil.c
parentuse minimal posix sed (diff)
downloadgnupg-45c1414a2fc04e46a413e62b12bd33d021572abd.tar.gz
gnupg-45c1414a2fc04e46a413e62b12bd33d021572abd.zip
* miscutil.c (make_printable_string): Fix bug where some control
characters lose part of their ASCII representation.
Diffstat (limited to '')
-rw-r--r--util/miscutil.c2
1 files changed, 1 insertions, 1 deletions
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