[Pkg-gnupg-commit] [gnupg2] 26/116: g13: Improve printing of debug infos.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Tue Jan 24 04:40:50 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gnupg2.

commit 5b6ebfb9244602d9de31d61c7eceb0c45ac8aa49
Author: Werner Koch <wk at gnupg.org>
Date:   Mon Jan 2 13:30:37 2017 +0100

    g13: Improve printing of debug infos.
    
    * g13/g13tuple.c (all_printable): Make it work.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>
---
 g13/g13tuple.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/g13/g13tuple.c b/g13/g13tuple.c
index f79c82d..b10ebbc 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;
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list