summaryrefslogtreecommitdiffstats
path: root/perl-install/c
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-03-21 18:14:00 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-03-21 18:14:00 +0000
commitd02b785a79da4d2403488c2858150097cff1b553 (patch)
treea3a94a1ea0d28f3071f12e5263b10de31369301b /perl-install/c
parent3b3ab1b644c619846971a5c56d5aa7d56a251275 (diff)
downloaddrakx-d02b785a79da4d2403488c2858150097cff1b553.tar
drakx-d02b785a79da4d2403488c2858150097cff1b553.tar.gz
drakx-d02b785a79da4d2403488c2858150097cff1b553.tar.bz2
drakx-d02b785a79da4d2403488c2858150097cff1b553.tar.xz
drakx-d02b785a79da4d2403488c2858150097cff1b553.zip
(from_utf8): as pablo said...
Diffstat (limited to 'perl-install/c')
-rw-r--r--perl-install/c/stuff.xs.pm2
1 files changed, 1 insertions, 1 deletions
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;