aboutsummaryrefslogtreecommitdiffstats
path: root/g10/parse-packet.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-05-08 14:20:26 +0000
committerWerner Koch <[email protected]>2015-05-08 14:20:26 +0000
commit7039f87375b3c89d6e63837b811ed2be71c8d9db (patch)
tree2a9389c5ddfd58f8d2f0e5876c19ee487d234209 /g10/parse-packet.c
parentgpg: New command --quick-adduid. (diff)
downloadgnupg-7039f87375b3c89d6e63837b811ed2be71c8d9db.tar.gz
gnupg-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 <[email protected]> This was an oversight from the conversion to estream or a separate listing stream. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/parse-packet.c')
-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);