summaryrefslogtreecommitdiffstats
path: root/g13/g13tuple.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2017-01-02 13:30:37 +0100
committerWerner Koch <wk@gnupg.org>2017-01-02 13:30:37 +0100
commit5b6ebfb9244602d9de31d61c7eceb0c45ac8aa49 (patch)
tree7f897e8c0438a9709b966f6a756e506efce68538 /g13/g13tuple.c
parentReplace use of variable-length-arrays. (diff)
downloadgnupg2-5b6ebfb9244602d9de31d61c7eceb0c45ac8aa49.tar.xz
gnupg2-5b6ebfb9244602d9de31d61c7eceb0c45ac8aa49.zip
g13: Improve printing of debug infos.
* g13/g13tuple.c (all_printable): Make it work. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g13/g13tuple.c')
-rw-r--r--g13/g13tuple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g13/g13tuple.c b/g13/g13tuple.c
index f79c82d51..b10ebbc9a 100644
--- a/g13/g13tuple.c
+++ b/g13/g13tuple.c
@@ -282,7 +282,7 @@ all_printable (const void *buf, size_t buflen)
const unsigned char *s;
for (s=buf ; buflen; s++, buflen--)
- if (*s < 32 && *s > 126)
+ if (*s < 32 || *s > 126)
return 0;
return 1;
}