From 65f3eef1ee8087f301b7556ff94957754aa022ac Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 16 Dec 2002 06:56:33 +0000 Subject: [PATCH] * parse.y (nextc): get rid of overrun. (pointed out by akr [ruby-list:36773]) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ parse.y | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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'; }