home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / sgi / 16732 < prev    next >
Encoding:
Text File  |  1992-11-21  |  1.6 KB  |  62 lines

  1. Newsgroups: comp.sys.sgi
  2. Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!hshamans
  3. From: hshamans@magnus.acs.ohio-state.edu (Harry T Shamansky)
  4. Subject: Fixed bug in MH
  5. Message-ID: <1992Nov21.210157.22049@magnus.acs.ohio-state.edu>
  6. Keywords: MH
  7. Sender: Harry T Shamansky
  8. Nntp-Posting-Host: top.magnus.acs.ohio-state.edu
  9. Organization: The Ohio State University
  10. Distribution: comp.sys.sgi
  11. Date: Sat, 21 Nov 1992 21:01:57 GMT
  12. Lines: 48
  13.  
  14.    Hello fellow-sgi'ers
  15.  
  16.    In an earlier post, Dave (dsg@blackbird.mitre.org) reported a problem
  17.    with MH-6.7 tossing in a strange character after inc'ing a file. I
  18.    saw the problem also, and tried to figure it out. I got close, but was
  19.    unable to nip it in the bud.
  20.  
  21.    Enter John Romine (keeper of bug-repairing tools at Bug-MH@ics.uci.edu).
  22.    I was able to point him to m_getfld() in sbr/m_getfld.c, and within
  23.    minutes he had the following patch:
  24.  
  25.  
  26. *** ../../mh-6.7.2/sbr/m_getfld.c    Mon Jan 27 10:00:52 1992
  27. --- ./m_getfld.c    Wed Nov 11 16:50:06 1992
  28. ***************
  29. *** 546,557 ****
  30.            */
  31.           return 1;
  32.   
  33. ! #ifdef notdef
  34. !     (void) fseek (iob, (long)(pos-1), 0);
  35. !     if (iob->_cnt <= 0)
  36. !         _filbuf(iob);
  37. ! #else
  38.       (void) fseek (iob, pos, 0);
  39.   #endif /* !notdef */
  40.       return 0;
  41.       }
  42. --- 546,556 ----
  43.            */
  44.           return 1;
  45.   
  46. ! #ifdef    notdef
  47.       (void) fseek (iob, pos, 0);
  48. + #else
  49. +     (void) fseek (iob, (long)(pos-1), 0);
  50. +     (void) getc (iob);        /* should be OK */
  51.   #endif /* !notdef */
  52.       return 0;
  53.       }
  54.  
  55.  
  56.    John informs me that a new version of MH will be out toward the end
  57.    of the month, and it will have that fix.
  58.  
  59.    I tested the patch for the problem it was to fix; it worked well.
  60.  
  61.    harry
  62.