summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorsimonb <simonb@NetBSD.org>2000-11-17 01:32:27 +0000
committersimonb <simonb@NetBSD.org>2000-11-17 01:32:27 +0000
commitda198db71e7ce7743c1b3059b20f73e264c9bbfb (patch)
tree6077e0b861d09bcec2457ea738a0f1545670b336 /gnu/usr.bin
parent87db6e6fc95141ebfeaf20bb9819b3eeb4ce8ed6 (diff)
Update the output counter so "gzip -dv" show meaningful results for
decompressing bzip2 files.
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/gzip/unbzip2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/usr.bin/gzip/unbzip2.c b/gnu/usr.bin/gzip/unbzip2.c
index 16b555a971b..8de70035bed 100644
--- a/gnu/usr.bin/gzip/unbzip2.c
+++ b/gnu/usr.bin/gzip/unbzip2.c
@@ -2,7 +2,7 @@
*/
#ifdef RCSID
-static char rcsid[] = "$Id: unbzip2.c,v 1.2 1999/08/20 00:08:57 simonb Exp $";
+static char rcsid[] = "$Id: unbzip2.c,v 1.3 2000/11/17 01:32:27 simonb Exp $";
#endif
#define BZ_NO_STDIO
@@ -53,6 +53,7 @@ int unbzip2(in, out)
n = write(out, outbuf, OUTBUFSIZ - bzs.avail_out);
if (n < 0)
write_error();
+ bytes_out += n;
}
break;
}
@@ -61,6 +62,7 @@ int unbzip2(in, out)
read_error();
if (!test)
n = write(out, outbuf, OUTBUFSIZ - bzs.avail_out);
+ bytes_out += n;
}
else {
switch (ret) {