cvs: Zend / zend_execute.c

From: Date: Sat, 17 Aug 2002 20:18:55 +0000
Subject: cvs: Zend / zend_execute.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-327@lists.php.net to get a copy of this message
andi Sat Aug 17 16:18:55 2002 EDT Modified files: /Zend zend_execute.c Log: - Always use estrndup() instead of estrdup() when possible. Index: Zend/zend_execute.c diff -u Zend/zend_execute.c:1.301 Zend/zend_execute.c:1.302 --- Zend/zend_execute.c:1.301 Sat Aug 17 12:21:55 2002 +++ Zend/zend_execute.c Sat Aug 17 16:18:55 2002 @@ -2094,7 +2094,7 @@ if (file_handle.handle.fp) { if( !opened_path ) { - opened_path = file_handle.opened_path = estrdup(inc_filename->value.str.val); + opened_path = file_handle.opened_path = estrndup(inc_filename->value.str.val, inc_filename->value.str.len); } if (zend_hash_add(&EG(included_files), opened_path, strlen(opened_path)+1, (void *)&dummy, sizeof(int), NULL)==SUCCESS) {

« previous php.zend-engine.cvs (#327) next »