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:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user