Stray null butes in output of GnuPG from --edit-key?

Werner Koch wk at gnupg.org
Wed Nov 6 10:15:02 CET 2002


On Tue, 5 Nov 2002 14:14:46 +0100, Marcus Brinkmann said:

> Mmh, this seems to be rather an issue with gpg.  I did the following:

Right.  David and I both fixed that.  Here is a patch against 1.2.1


diff -u -r1.74.2.3 keyedit.c
--- g10/keyedit.c       11 Oct 2002 20:44:27 -0000      1.74.2.3
+++ g10/keyedit.c       6 Nov 2002 09:11:10 -0000
@@ -1573,7 +1573,7 @@
           || (node->pkt->pkttype == PKT_PUBLIC_SUBKEY) )
         {
           PKT_public_key *pk = node->pkt->pkt.public_key;
-          int otrust=0, trust=0;
+          int otrust='-', trust='-';
           u32 keyid[2];
 
           if (node->pkt->pkttype == PKT_PUBLIC_KEY)





More information about the Gnupg-devel mailing list