summaryrefslogtreecommitdiffstats
path: root/tools/gpgsplit.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2006-10-02 13:54:35 +0200
committerWerner Koch <wk@gnupg.org>2006-10-02 13:54:35 +0200
commit4b48bcacc9a242365e85ca788c4c966d8aeb1c10 (patch)
tree21e803ec571bbe4d9288e014a16ccafe0ac45056 /tools/gpgsplit.c
parent2006-10-02 Marcus Brinkmann <marcus@g10code.de> (diff)
downloadgnupg2-4b48bcacc9a242365e85ca788c4c966d8aeb1c10.tar.xz
gnupg2-4b48bcacc9a242365e85ca788c4c966d8aeb1c10.zip
Fix for bug 537
Diffstat (limited to 'tools/gpgsplit.c')
-rw-r--r--tools/gpgsplit.c13
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;