diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-03-21 18:14:00 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-03-21 18:14:00 +0000 |
commit | d02b785a79da4d2403488c2858150097cff1b553 (patch) | |
tree | a3a94a1ea0d28f3071f12e5263b10de31369301b /perl-install/c/stuff.xs.pm | |
parent | 3b3ab1b644c619846971a5c56d5aa7d56a251275 (diff) | |
download | drakx-backup-do-not-use-d02b785a79da4d2403488c2858150097cff1b553.tar drakx-backup-do-not-use-d02b785a79da4d2403488c2858150097cff1b553.tar.gz drakx-backup-do-not-use-d02b785a79da4d2403488c2858150097cff1b553.tar.bz2 drakx-backup-do-not-use-d02b785a79da4d2403488c2858150097cff1b553.tar.xz drakx-backup-do-not-use-d02b785a79da4d2403488c2858150097cff1b553.zip |
(from_utf8): as pablo said...
Diffstat (limited to 'perl-install/c/stuff.xs.pm')
-rw-r--r-- | perl-install/c/stuff.xs.pm | 2 |
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; |