home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sgi
- Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!hshamans
- From: hshamans@magnus.acs.ohio-state.edu (Harry T Shamansky)
- Subject: Fixed bug in MH
- Message-ID: <1992Nov21.210157.22049@magnus.acs.ohio-state.edu>
- Keywords: MH
- Sender: Harry T Shamansky
- Nntp-Posting-Host: top.magnus.acs.ohio-state.edu
- Organization: The Ohio State University
- Distribution: comp.sys.sgi
- Date: Sat, 21 Nov 1992 21:01:57 GMT
- Lines: 48
-
- Hello fellow-sgi'ers
-
- In an earlier post, Dave (dsg@blackbird.mitre.org) reported a problem
- with MH-6.7 tossing in a strange character after inc'ing a file. I
- saw the problem also, and tried to figure it out. I got close, but was
- unable to nip it in the bud.
-
- Enter John Romine (keeper of bug-repairing tools at Bug-MH@ics.uci.edu).
- I was able to point him to m_getfld() in sbr/m_getfld.c, and within
- minutes he had the following patch:
-
-
- *** ../../mh-6.7.2/sbr/m_getfld.c Mon Jan 27 10:00:52 1992
- --- ./m_getfld.c Wed Nov 11 16:50:06 1992
- ***************
- *** 546,557 ****
- */
- return 1;
-
- ! #ifdef notdef
- ! (void) fseek (iob, (long)(pos-1), 0);
- ! if (iob->_cnt <= 0)
- ! _filbuf(iob);
- ! #else
- (void) fseek (iob, pos, 0);
- #endif /* !notdef */
- return 0;
- }
- --- 546,556 ----
- */
- return 1;
-
- ! #ifdef notdef
- (void) fseek (iob, pos, 0);
- + #else
- + (void) fseek (iob, (long)(pos-1), 0);
- + (void) getc (iob); /* should be OK */
- #endif /* !notdef */
- return 0;
- }
-
-
- John informs me that a new version of MH will be out toward the end
- of the month, and it will have that fix.
-
- I tested the patch for the problem it was to fix; it worked well.
-
- harry
-