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;
 }
 /* }}} */



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to