summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-12-03 20:57:19 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-12-03 20:57:19 +0000
commitad391ad9bbfeaf73d3944b50240313a5677bcc60 (patch)
tree270b2e4acd993a5e6c9721113cd4130e6ca64f4e /sv.c
parent801ca9cd5af7c86da741a601b4721bff3f94f9cd (diff)
downloadperl-ad391ad9bbfeaf73d3944b50240313a5677bcc60.tar.gz
Make uv_to_utf8() to zero-terminate its output buffer,
always use (at least) UTF8_MAXLEN + 1 U8s deep buffer. p4raw-id: //depot/perl@7967
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 01076cbe02..912d694636 100644
--- a/sv.c
+++ b/sv.c
@@ -6067,7 +6067,7 @@ Perl_sv_vcatpvfn(pTHX_ SV *sv, const char *pat, STRLEN patlen, va_list *args, SV
bool is_utf = FALSE;
char esignbuf[4];
- U8 utf8buf[UTF8_MAXLEN];
+ U8 utf8buf[UTF8_MAXLEN+1];
STRLEN esignlen = 0;
char *eptr = Nullch;