diff --git a/ChangeLog b/ChangeLog index 188b9ebeca..42282e1748 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Dec 16 15:53:20 2002 Nobuyoshi Nakada + + * parse.y (nextc): get rid of overrun. (pointed out by akr + [ruby-list:36773]) + Sun Dec 15 21:16:44 2002 WATANABE Hirofumi * lib/mkmf.rb (init_mkmf): add $(topdir) to $LIBPATH if $extmk. diff --git a/parse.y b/parse.y index 4ffee17ae1..1e5696b97c 100644 --- a/parse.y +++ b/parse.y @@ -2529,7 +2529,7 @@ nextc() } } c = (unsigned char)*lex_p++; - if (c == '\r' && lex_p <= lex_pend && *lex_p == '\n') { + if (c == '\r' && lex_p < lex_pend && *lex_p == '\n') { lex_p++; c = '\n'; }