X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/884fc2d39dfcec3db11eecde0cdd7c30846e153b..81b3f640bb2856350fe6a5efe32056accab1d775:/toke.c diff --git a/toke.c b/toke.c index 6e27427..5959bc3 100644 --- a/toke.c +++ b/toke.c @@ -10563,7 +10563,7 @@ S_scan_str(pTHX_ char *start, int keep_bracketed_quoted, int keep_delims, int re I32 brackets = 1; /* bracket nesting level */ bool has_utf8 = FALSE; /* is there any utf8 content? */ IV termcode; /* terminating char. code */ - U8 termstr[UTF8_MAXBYTES]; /* terminating string */ + U8 termstr[UTF8_MAXBYTES+1]; /* terminating string */ STRLEN termlen; /* length of terminating string */ line_t herelines;