cmp: Increase buffer size for non-mmap case.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Reviewed by:	rpokala
Differential Revision:	https://reviews.freebsd.org/D38281
This commit is contained in:
Dag-Erling Smørgrav 2023-01-31 01:28:53 +01:00
parent 6673a5476d
commit 134841a7f3

View File

@ -65,8 +65,10 @@ c_special(int fd1, const char *file1, off_t skip1,
if ((fp1 = fdopen(fd1, "r")) == NULL)
err(ERR_EXIT, "%s", file1);
(void)setvbuf(fp1, NULL, _IOFBF, 65536);
if ((fp2 = fdopen(fd2, "r")) == NULL)
err(ERR_EXIT, "%s", file2);
(void)setvbuf(fp2, NULL, _IOFBF, 65536);
dfound = 0;
while (skip1--)