Aucbvax.5395
net.2bsd-bugs
utzoo!decvax!duke!chico!harpo!cbosg!ihnss!ucbvax!dist2
Sun Dec 6 02:56:52 1981
FIXED: bugs in src/diff/diff{dir,reg}.c
There appear to be two bugs in the 2.8BSD diff source.
In diffdir.c a cast to unsigned is needed in a malloc call and
in diffreg.c a fprintf call needs a stream argument.
Quite right. The necessary changes (as described previously) are:
diff src/diff/diffdir.c.old src/diff/diffdir.c
188c188
dp = (struct direct *)malloc((unsigned)stb.st_size + sizeof (struct direct));
diff src/diff/diffreg.c.old src/diff/diffreg.c
170c170
fprintf(stderr, "diff: ");
These changes are necessary on tapes written before 12/5/81. The latter
bug (in diffreg) exists in 4.1BSD as well.
Carl
-----------------------------------------------------------------
gopher://quux.org/ conversion by John Goerzen <
[email protected]>
of
http://communication.ucsd.edu/A-News/
This Usenet Oldnews Archive
article may be copied and distributed freely, provided:
1. There is no money collected for the text(s) of the articles.
2. The following notice remains appended to each copy:
The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996
Bruce Jones, Henry Spencer, David Wiseman.