1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00

no space for comma separated encoding lists

This commit is contained in:
Marcus Boerger
2002-04-05 16:24:08 +00:00
parent b3a96ba509
commit cbb96206be
+3 -3
View File
@@ -2144,9 +2144,9 @@ PHP_FUNCTION(mb_convert_encoding)
if ( _from_encodings) {
l = strlen(_from_encodings);
n = strlen(Z_STRVAL_PP(hash_entry));
_from_encodings = erealloc(_from_encodings, l+n+3);
strcpy(_from_encodings+l,", ");
strcpy(_from_encodings+l+2,Z_STRVAL_PP(hash_entry));
_from_encodings = erealloc(_from_encodings, l+n+2);
strcpy(_from_encodings+l,",");
strcpy(_from_encodings+l+1,Z_STRVAL_PP(hash_entry));
} else {
_from_encodings = estrdup(Z_STRVAL_PP(hash_entry));
}