cvs: php4 /ext/mbstring mbstring.c
| From: | Marcus B�rger | Date: | Fri, 05 Apr 2002 16:24:09 +0000 |
| Subject: | cvs: php4 /ext/mbstring mbstring.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-10905@lists.php.net to get a copy of this message | ||
helly Fri Apr 5 11:24:09 2002 EDT
Modified files:
/php4/ext/mbstring mbstring.c
Log:
no space for comma separated encoding lists
Index: php4/ext/mbstring/mbstring.c
diff -u php4/ext/mbstring/mbstring.c:1.52 php4/ext/mbstring/mbstring.c:1.53
--- php4/ext/mbstring/mbstring.c:1.52 Thu Apr 4 21:13:32 2002
+++ php4/ext/mbstring/mbstring.c Fri Apr 5 11:24:08 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mbstring.c,v 1.52 2002/04/05 02:13:32 yohgaki Exp $ */
+/* $Id: mbstring.c,v 1.53 2002/04/05 16:24:08 helly Exp $ */
/*
* PHP4 Multibyte String module "mbstring" (currently only for Japanese)
@@ -2144,9 +2144,9 @@
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));
}