summaryrefslogtreecommitdiffstats
path: root/usr.bin/gzip/zuncompress.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/gzip/zuncompress.c')
-rw-r--r--usr.bin/gzip/zuncompress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/gzip/zuncompress.c b/usr.bin/gzip/zuncompress.c
index f1b05fd..6069cae 100644
--- a/usr.bin/gzip/zuncompress.c
+++ b/usr.bin/gzip/zuncompress.c
@@ -145,7 +145,7 @@ zuncompress(FILE *in, FILE *out, char *pre, size_t prelen,
else
compressed_pre = NULL;
- while ((bin = fread(buf, 1, sizeof(buf), in)) != 0) {
+ while ((bin = fread(buf, 1, BUFSIZE, in)) != 0) {
if (tflag == 0 && (off_t)fwrite(buf, 1, bin, out) != bin) {
free(buf);
return -1;
OpenPOWER on IntegriCloud