diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-06-18 16:28:48 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-06-18 16:28:48 +0000 |
commit | 3b818b81e61465ce5ae6f7c21e6ca3b83d30216e (patch) | |
tree | 8bc7668aa463ab06b03c03dfa38a04df00084006 /regcomp.c | |
parent | adaafad26d5bef10acc55989794c3767dc3c9dec (diff) | |
download | perl-3b818b81e61465ce5ae6f7c21e6ca3b83d30216e.tar.gz |
fix off-by-one that trampled memory in re_croak2()
p4raw-id: //depot/perl@1142
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2569,8 +2569,8 @@ re_croak2(const char* pat1,const char* pat2,...) l2 = 510 - l1; Copy(pat1, buf, l1 , char); Copy(pat2, buf + l1, l2 , char); - buf[l1 + l2 + 1] = '\n'; - buf[l1 + l2 + 2] = '\0'; + buf[l1 + l2] = '\n'; + buf[l1 + l2 + 1] = '\0'; va_start(args, pat2); message = mess(buf, &args); va_end(args); |