projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Perl 5.8.3 patches from the BS2000 port - part 2
[p5sagit/p5-mst-13.2.git]
/
regcomp.c
diff --git
a/regcomp.c
b/regcomp.c
index
ded3c63
..
6293ade
100644
(file)
--- a/
regcomp.c
+++ b/
regcomp.c
@@
-5045,7
+5045,7
@@
S_re_croak2(pTHX_ const char* pat1,const char* pat2,...)
if (l1 > 512)
l1 = 512;
Copy(message, buf, l1 , char);
- buf[l1] = '\0'; /* Overwrite \n */
+ buf[l1-1] = '\0'; /* Overwrite \n */
Perl_croak(aTHX_ "%s", buf);
}