diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2007-04-01 01:20:02 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2007-04-01 01:20:02 +0000 |
commit | 65b06e02d98d79674a9890d225d9bbf7b8191dbe (patch) | |
tree | 89ae2a197c0b952bb0ad4294f1ef222efbffd56b /sv.c | |
parent | 2f554ef70d979db80efccf5fce9a84ca1a2f45dc (diff) | |
download | perl-65b06e02d98d79674a9890d225d9bbf7b8191dbe.tar.gz |
Eliminate the use of PL_bufend outside of toke.c:
give Perl_scan_vstring() an explicit 'end' arg rather than using
PL_bufend, and replace it with a local var in Perl_find_script()
p4raw-id: //depot/perl@30820
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -8694,12 +8694,7 @@ Perl_sv_vcatpvfn(pTHX_ SV *sv, const char *pat, STRLEN patlen, va_list *args, SV goto unknown; } vecsv = sv_newmortal(); - /* scan_vstring is expected to be called during - * tokenization, so we need to fake up the end - * of the buffer for it - */ - PL_bufend = version + veclen; - scan_vstring(version, vecsv); + scan_vstring(version, version + veclen, vecsv); vecstr = (U8*)SvPV_const(vecsv, veclen); vec_utf8 = DO_UTF8(vecsv); Safefree(version); |