Greg Hudson <[EMAIL PROTECTED]> writes:
> We recently found a piece of mail which causes show or scan to dump
> core under Linux. The cause appears to be a fencepost
Is "fencepost" the same thing as "boundary condition"? I don't believe I've
heard your term before.
> Index: m_getfld.c
> ===================================================================
> RCS file: /afs/dev.mit.edu/source/repository/third/nmh/sbr/m_getfld.c,v
> retrieving revision 1.1.1.1
> diff -c -r1.1.1.1 m_getfld.c
> *** m_getfld.c 1999/02/07 18:14:09 1.1.1.1
> --- m_getfld.c 2000/08/08 19:19:18
> ***************
> *** 259,265 ****
> bp = sp = (unsigned char *) iob->_ptr - 1;
> j = (cnt = iob->_cnt+1) < i ? cnt : i;
> #endif
> ! while ((c = *bp++) != ':' && c != '\n' && --j >= 0)
> *cp++ = c;
>
> j = bp - sp;
> --- 259,265 ----
> bp = sp = (unsigned char *) iob->_ptr - 1;
> j = (cnt = iob->_cnt+1) < i ? cnt : i;
> #endif
> ! while (--j >= 0 && (c = *bp++) != ':' && c != '\n')
> *cp++ = c;
>
> j = bp - sp;
Thanks, Greg, but this was fixed way back in May 1999 (nmh 1.0 incorporates
the fix). The most recently released version of nmh is 1.0.4, with 1.0.5
not too far off.
-----------------------------------------------------------------------
Dan Harkless | To prevent SPAM contamination, please
[EMAIL PROTECTED] | do not post this private email address
SpeedGate Communications, Inc. | to the USENET or WWW. Thank you.