diff options
author | Werner Koch <wk@gnupg.org> | 2017-01-02 13:30:37 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2017-01-02 13:30:37 +0100 |
commit | 5b6ebfb9244602d9de31d61c7eceb0c45ac8aa49 (patch) | |
tree | 7f897e8c0438a9709b966f6a756e506efce68538 /g13/g13tuple.c | |
parent | Replace use of variable-length-arrays. (diff) | |
download | gnupg2-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.c | 2 |
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; } |