diff options
author | Werner Koch <wk@gnupg.org> | 2006-10-02 13:54:35 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2006-10-02 13:54:35 +0200 |
commit | 4b48bcacc9a242365e85ca788c4c966d8aeb1c10 (patch) | |
tree | 21e803ec571bbe4d9288e014a16ccafe0ac45056 /tools/gpgsplit.c | |
parent | 2006-10-02 Marcus Brinkmann <marcus@g10code.de> (diff) | |
download | gnupg2-4b48bcacc9a242365e85ca788c4c966d8aeb1c10.tar.xz gnupg2-4b48bcacc9a242365e85ca788c4c966d8aeb1c10.zip |
Fix for bug 537
Diffstat (limited to 'tools/gpgsplit.c')
-rw-r--r-- | tools/gpgsplit.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/tools/gpgsplit.c b/tools/gpgsplit.c index 96760dab3..8c1705396 100644 --- a/tools/gpgsplit.c +++ b/tools/gpgsplit.c @@ -19,10 +19,6 @@ * USA. */ -/* - * TODO: Add an option to uncompress packets. This should come quite handy. - */ - #include <config.h> #include <errno.h> #include <stdio.h> @@ -446,6 +442,15 @@ handle_zlib(int algo,FILE *fpin,FILE *fpout) } } while (zrc != Z_STREAM_END && zrc != Z_BUF_ERROR); + { + int i; + + fputs ("Left over bytes:", stderr); + for (i=0; i < zs.avail_in; i++) + fprintf (stderr, " %02X", zs.next_in[i]); + putc ('\n', stderr); + + } inflateEnd (&zs); return 0; |