diff options
author | delphij <delphij@FreeBSD.org> | 2014-06-26 00:31:58 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2014-06-26 00:31:58 +0000 |
commit | 6e86e0007a8393f192925fc28266b65eda68c621 (patch) | |
tree | d60cc8bdab0344aadbe1642caa369cb444bdaa2d /usr.bin | |
parent | 229159936f7b4d5053ad66175bf37250c2a03486 (diff) | |
download | FreeBSD-src-6e86e0007a8393f192925fc28266b65eda68c621.zip FreeBSD-src-6e86e0007a8393f192925fc28266b65eda68c621.tar.gz |
Correct buffer size.
Submitted by: Sascha Wildner <swildner dragonflybsd org>
MFC after: 2 weeks
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/gzip/zuncompress.c | 2 |
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; |