summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2015-05-08 16:20:26 +0200
committerWerner Koch <wk@gnupg.org>2015-05-08 16:20:26 +0200
commit7039f87375b3c89d6e63837b811ed2be71c8d9db (patch)
tree2a9389c5ddfd58f8d2f0e5876c19ee487d234209
parentgpg: New command --quick-adduid. (diff)
downloadgnupg2-7039f87375b3c89d6e63837b811ed2be71c8d9db.tar.xz
gnupg2-7039f87375b3c89d6e63837b811ed2be71c8d9db.zip
gpg: Fix wrong output in list mode.
* g10/parse-packet.c (parse_gpg_control): Replace puts by es_fputs to LISTFP. -- Reported-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net> This was an oversight from the conversion to estream or a separate listing stream. Signed-off-by: Werner Koch <wk@gnupg.org>
-rw-r--r--g10/parse-packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c
index c80b7df7d..3cac6f868 100644
--- a/g10/parse-packet.c
+++ b/g10/parse-packet.c
@@ -2906,7 +2906,7 @@ parse_gpg_control (IOBUF inp, int pkttype, unsigned long pktlen,
goto skipit; /* Definitely too large. We skip it to avoid an
overflow in the malloc. */
if (list_mode)
- puts ("- gpg control packet");
+ es_fputs ("- gpg control packet", listfp);
packet->pkt.gpg_control = xmalloc (sizeof *packet->pkt.gpg_control
+ pktlen - 1);