From d02b785a79da4d2403488c2858150097cff1b553 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 21 Mar 2001 18:14:00 +0000 Subject: (from_utf8): as pablo said... --- perl-install/c/stuff.xs.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/c/stuff.xs.pm b/perl-install/c/stuff.xs.pm index 7a3bc6c2d..41d0b721a 100644 --- a/perl-install/c/stuff.xs.pm +++ b/perl-install/c/stuff.xs.pm @@ -451,7 +451,7 @@ from_utf8(s) RETVAL = s; if (cd != (iconv_t) (-1)) { int s_len = strlen(RETVAL); - char *buf = alloca(2 * s_len); + char *buf = alloca(s_len + 10); /* 10 for safety, it should not be needed, utf8 is *always* bigger than a special encoding */ { char *ptr = buf; int ptr_len = s_len; -- cgit v1.2.1