projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix order of 2nd and 3rd arguments to fread so the count of the
[unix-history]
/
usr
/
src
/
usr.bin
/
diff
/
diff
/
diffreg.c
diff --git
a/usr/src/usr.bin/diff/diff/diffreg.c
b/usr/src/usr.bin/diff/diff/diffreg.c
index
f71f2b3
..
255305e
100644
(file)
--- a/
usr/src/usr.bin/diff/diff/diffreg.c
+++ b/
usr/src/usr.bin/diff/diff/diffreg.c
@@
-1,4
+1,4
@@
-static char sccsid[] = "@(#)diffreg.c 4.
5
%G%";
+static char sccsid[] = "@(#)diffreg.c 4.
6
%G%";
#include "diff.h"
/*
#include "diff.h"
/*
@@
-137,8
+137,8
@@
diffreg()
if (stb1.st_size != stb2.st_size)
goto notsame;
for (;;) {
if (stb1.st_size != stb2.st_size)
goto notsame;
for (;;) {
- i = fread(buf1,
BUFSIZ, 1
, f1);
- j = fread(buf2,
BUFSIZ, 1
, f2);
+ i = fread(buf1,
1, BUFSIZ
, f1);
+ j = fread(buf2,
1, BUFSIZ
, f2);
if (i < 0 || j < 0 || i != j)
goto notsame;
if (i == 0 && j == 0) {
if (i < 0 || j < 0 || i != j)
goto notsame;
if (i == 0 && j == 0) {
@@
-778,7
+778,7
@@
asciifile(f)
register char *cp;
fseek(f, (long)0, 0);
register char *cp;
fseek(f, (long)0, 0);
- cnt = fread(buf,
BUFSIZ, 1
, f);
+ cnt = fread(buf,
1, BUFSIZ
, f);
if (cnt >= sizeof (struct exec)) {
struct exec hdr;
hdr = *(struct exec *)buf;
if (cnt >= sizeof (struct exec)) {
struct exec hdr;
hdr = *(struct exec *)buf;