svn commit: r267887 - head/usr.bin/gzip
Xin LI
delphij at FreeBSD.org
Thu Jun 26 00:31:59 UTC 2014
Author: delphij
Date: Thu Jun 26 00:31:58 2014
New Revision: 267887
URL: http://svnweb.freebsd.org/changeset/base/267887
Log:
Correct buffer size.
Submitted by: Sascha Wildner <swildner dragonflybsd org>
MFC after: 2 weeks
Modified:
head/usr.bin/gzip/zuncompress.c
Modified: head/usr.bin/gzip/zuncompress.c
==============================================================================
--- head/usr.bin/gzip/zuncompress.c Wed Jun 25 23:42:53 2014 (r267886)
+++ head/usr.bin/gzip/zuncompress.c Thu Jun 26 00:31:58 2014 (r267887)
@@ -145,7 +145,7 @@ zuncompress(FILE *in, FILE *out, char *p
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;
More information about the svn-src-all
mailing list