This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
toke.c: Use local variable instead of global
[perl5.git] / toke.c
diff --git a/toke.c b/toke.c
index 30bdf32..4f0fe67 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -3534,7 +3534,7 @@ S_scan_const(pTHX_ char *start)
                {
                    const char* error;
 
-                   bool valid = grok_bslash_o(&s, PL_bufend,
+                   bool valid = grok_bslash_o(&s, send,
                                                &uv, &error,
                                                TRUE, /* Output warning */
                                                FALSE, /* Not strict */
@@ -3553,7 +3553,7 @@ S_scan_const(pTHX_ char *start)
                {
                    const char* error;
 
-                   bool valid = grok_bslash_x(&s, PL_bufend,
+                   bool valid = grok_bslash_x(&s, send,
                                                &uv, &error,
                                                TRUE, /* Output warning */
                                                FALSE, /* Not strict */