diff options
author | Karl Williamson <khw@cpan.org> | 2017-11-02 14:01:54 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2017-11-06 14:31:45 -0700 |
commit | d77eff5dad2005a73486250f392ba19252626fe0 (patch) | |
tree | b240973836e3cf334415e19641989648ae8cdf71 /toke.c | |
parent | c6875f946df1255aa7617d8239504e8186077df9 (diff) | |
download | perl-d77eff5dad2005a73486250f392ba19252626fe0.tar.gz |
toke.c use memBEGINs with prev commit
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1734,6 +1734,8 @@ S_incline(pTHX_ const char *s, const char *end) PERL_ARGS_ASSERT_INCLINE; + assert(end >= s); + COPLINE_INC_WITH_HERELINES; if (!PL_rsfp && !PL_parser->filtered && PL_lex_state == LEX_NORMAL && s+1 == PL_bufend && *s == ';') { @@ -1745,8 +1747,8 @@ S_incline(pTHX_ const char *s, const char *end) return; while (SPACE_OR_TAB(*s)) s++; - if (strBEGINs(s, "line")) - s += 4; + if (memBEGINs(s, (STRLEN) (end - s), "line")) + s += sizeof("line") - 1; else return; if (SPACE_OR_TAB(*s)) |