Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site utcs.UUCP Path: utzoo!utcs!nishri From: nishri@utcs.UUCP (Chris Lewis) Newsgroups: net.sources.bugs Subject: Severe bug in Menunix Message-ID: <406@utcs.UUCP> Date: Wed, 30-Jan-85 18:29:09 EST Article-I.D.: utcs.406 Posted: Wed Jan 30 18:29:09 1985 Date-Received: Wed, 30-Jan-85 18:42:07 EST Organization: University of Toronto - General Purpose UNIX 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