cvs: php4 /ext/standard string.c
| From: | Yasuo Ohgaki | Date: | Thu, 03 Oct 2002 04:54:01 +0000 |
| Subject: | cvs: php4 /ext/standard string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14432@lists.php.net to get a copy of this message | ||
yohgaki Thu Oct 3 00:54:01 2002 EDT
Modified files:
/php4/ext/standard string.c
Log:
Save memory
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.304 php4/ext/standard/string.c:1.305
--- php4/ext/standard/string.c:1.304 Wed Oct 2 14:58:09 2002
+++ php4/ext/standard/string.c Thu Oct 3 00:54:01 2002
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.304 2002/10/02 18:58:09 andrey Exp $ */
+/* $Id: string.c,v 1.305 2002/10/03 04:54:01 yohgaki Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -2468,6 +2468,7 @@
if (should_free) {
STR_FREE(str);
}
+ new_str = (char *) erealloc(new_str, *new_length);
return new_str;
}
/* }}} */