cdiff bug fix
Chad R. Larson
chad at anasaz.UUCP
Fri Sep 9 06:39:26 AEST 1988
I suspect y'all have caught and fixed this already, but in case you
haven't: The version of the public domain context diff program I have
had a bug where it called perror(3) with a null pointer instead of a
pointer to a null string. This caused my SysV.2 Unix to crash with the
infamous "Memory fault - core dumped" message. The applicable version
of the program was posted to comp.sources.misc as Volume 2, Issue 63 and
submitted by Mark H. Colburn. If your version is a different one this
may not apply. Below is a context diff (suprise!) of the bug fix. Use
Larry Wall's patch program, or install it by hand. No Charge!
-crl
-----------------------(start diff)--------------------------------
*** -
--- cdiff.c
**************
*** 1417,1423
{
fprintf(stderr, "Can't open %s file \"%s\": ", what, filename);
#ifndef OSK
! perror((char *) NULL);
#else
prerr(0, errno);
#endif
--- 1417,1423 -----
{
fprintf(stderr, "Can't open %s file \"%s\": ", what, filename);
#ifndef OSK
! perror("");
#else
prerr(0, errno);
#endif
-----------------------(end diff)--------------------------------
"All the young dudes carry the news" --David Bowie
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| DCF, Inc. | UUCP: ...ncar!noao!nud!anasaz!dcfinc!chad |
| 14623 North 49th Place | Ma Bell: (602) 953-1392 |
| Scottsdale, AZ 85254 | Loran: N-33deg37min20sec W-111deg58min26sec |
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| Disclaimer: These ARE the opinions of my employer! |
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
More information about the Comp.sources.bugs
mailing list