On Mon, 22 Oct 2001 [EMAIL PROTECTED] wrote:

> In a recent note, Thomas E. Dickey said:
>
> > Date: Mon, 22 Oct 2001 09:08:54 -0400 (EDT)
> >
> > On Mon, 22 Oct 2001 [EMAIL PROTECTED] wrote:
> >
> > > The problem:  If the last character of a string has the 0x80 bit set,
> > > the "i++" in LYLowerCase skips over the terminating NUL and LYLowerCase
> > > coasts througm memory converting characters to lower case until it
> > > encounters a NUL not preceded by 0x80.  This usually results in an
> > > Invalid Heap at the next call to free() and Lynx crashes, leaving the
> > > terminal in an insane state.
> >
> > how do you determine the end of an EBCDIC string?
> >
> '\0' as required by ANSI C.

then the last character of a string shouldn't have 0x80 rather than 0x00.

-- 
T.E.Dickey <[EMAIL PROTECTED]>
http://invisible-island.net
ftp://invisible-island.net


; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to [EMAIL PROTECTED]

Reply via email to