diff options
author | Werner Koch <wk@gnupg.org> | 2015-05-08 16:20:26 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2015-05-08 16:20:26 +0200 |
commit | 7039f87375b3c89d6e63837b811ed2be71c8d9db (patch) | |
tree | 2a9389c5ddfd58f8d2f0e5876c19ee487d234209 | |
parent | gpg: New command --quick-adduid. (diff) | |
download | gnupg2-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.c | 2 |
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); |