Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!iuvax!pur-ee!uiucdcs!uxc.cso.uiuc.edu!uicsrd!kai From: kai@uicsrd.UUCP Newsgroups: comp.sources.bugs Subject: MUSH bug fix Message-ID: <49800002@uicsrd> Date: Wed, 30-Sep-87 09:51:00 EDT Article-I.D.: uicsrd.49800002 Posted: Wed Sep 30 09:51:00 1987 Date-Received: Sat, 3-Oct-87 10:30:00 EDT Lines: 19 Nf-ID: #N:uicsrd:49800002:000:623 Nf-From: uicsrd.csrd.uiuc.edu!kai Sep 30 08:51:00 1987 On my BSD system (Sequent DYNIX V2.1), MUSH displayed error messages ("fseek in ...") while displaying the mail message headers, even though there was no actual error. The fix is simple. In the file hdrs.c, change line 21 to check explicitly for -1 instead of non-zero values. It seems that fseek somtimes returns positive values. Here is a diff. 21c21 < if (fseek(tmpf, msg[n].m_offset, L_SET) != 0) { --- > if (fseek(tmpf, msg[n].m_offset, L_SET) == -1) { Patrick Wolfe Internet: pwolfe@kai.com UUCP: ...!{uunet,ihnp4}!uiucuxc!kailand!pwolfe The opinions expressed here are my own, NOT my employers.