summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2014-06-26 00:31:58 +0000
committerdelphij <delphij@FreeBSD.org>2014-06-26 00:31:58 +0000
commit6e86e0007a8393f192925fc28266b65eda68c621 (patch)
treed60cc8bdab0344aadbe1642caa369cb444bdaa2d
parent229159936f7b4d5053ad66175bf37250c2a03486 (diff)
downloadFreeBSD-src-6e86e0007a8393f192925fc28266b65eda68c621.zip
FreeBSD-src-6e86e0007a8393f192925fc28266b65eda68c621.tar.gz
Correct buffer size.
Submitted by: Sascha Wildner <swildner dragonflybsd org> MFC after: 2 weeks
-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