yohgaki Thu Oct 3 00:56:55 2002 EDT
Modified files:
/php4/ext/standard string.c
Log:
Forgot 1 byte for \0
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.305 php4/ext/standard/string.c:1.306
--- php4/ext/standard/string.c:1.305 Thu Oct 3 00:54:01 2002
+++ php4/ext/standard/string.c Thu Oct 3 00:56:54 2002
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.305 2002/10/03 04:54:01 yohgaki Exp $ */
+/* $Id: string.c,v 1.306 2002/10/03 04:56:54 yohgaki Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -2468,7 +2468,7 @@
if (should_free) {
STR_FREE(str);
}
- new_str = (char *) erealloc(new_str, *new_length);
+ new_str = (char *) erealloc(new_str, *new_length+1);
return new_str;
}
/* }}} */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php