Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site neurad.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!umcp-cs!nbs-amrf!neurad!nishri@utcs.UUCP From: nishri@utcs.UUCP Newsgroups: net.sources.bugs Subject: Severe bug in Menunix Message-ID: <139@neurad.UUCP> Date: Sun, 3-Feb-85 23:28:24 EST Article-I.D.: neurad.139 Posted: Sun Feb 3 23:28:24 1985 Date-Received: Tue, 5-Feb-85 03:58:39 EST Sender: news@neurad.UUCP Organization: National Institutes of Health, Bethesda, MD Lines: 22 Bug in menunix, file utility.c, function "xopen" is missing a return value. Function should look like: FILE * xopen (name, mode) char *name, *mode; { FILE *ioptr = fopen (name, mode); if (ioptr == NULL) { fprintf (stderr, "Can't open %s\n", name); exit (1); } return(ioptr); /* missing from distributed version */ } This fixes the core dump problem mentioned previously - the originator's compiler just happened to leave "ioptr" in the return register - really lucky... We're running on a Pyramid which does not do this. Sure wish people would run lint on what they post! UUCP: utcs!mnetor!clewis