diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-03-09 18:08:52 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-03-09 18:08:52 +0000 |
commit | afaf3e61b3889243d7f17fcc2913733f1eaa4258 (patch) | |
tree | 4aa0935de04c142ca62909a2e7cd990ad3f9bec6 /toke.c | |
parent | 9ded7720f054021dc134360a11df36d0d7671457 (diff) | |
download | perl-afaf3e61b3889243d7f17fcc2913733f1eaa4258.tar.gz |
Refactoring from Larry implicit in the MAD patch.
p4raw-id: //depot/perl@27443
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -3171,13 +3171,14 @@ Perl_yylex(pTHX) CopLINE_dec(PL_curcop); incline(s); } - d = PL_bufend; - while (s < d && *s != '\n') - s++; - if (s < d) - s++; - else if (s > d) /* Found by Ilya: feed random input to Perl. */ - Perl_croak(aTHX_ "panic: input overflow"); + d = s; + while (d < PL_bufend && *d != '\n') + d++; + if (d < PL_bufend) + d++; + else if (d > PL_bufend) /* Found by Ilya: feed random input to Perl. */ + Perl_croak(aTHX_ "panic: input overflow"); + s = d; incline(s); if (PL_lex_formbrack && PL_lex_brackets <= PL_lex_formbrack) { PL_bufptr = s; |