cvs: ZendEngine2 / zend_constants.c
| From: | Ilia Alshanetsky | Date: | Fri, 12 Dec 2003 00:16:59 +0000 |
| Subject: | cvs: ZendEngine2 / zend_constants.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-2102@lists.php.net to get a copy of this message | ||
iliaa Thu Dec 11 19:16:59 2003 EDT
Modified files:
/ZendEngine2 zend_constants.c
Log:
Do not copy extra byte.
Index: ZendEngine2/zend_constants.c
diff -u ZendEngine2/zend_constants.c:1.63 ZendEngine2/zend_constants.c:1.64
--- ZendEngine2/zend_constants.c:1.63 Tue Dec 9 03:56:04 2003
+++ ZendEngine2/zend_constants.c Thu Dec 11 19:16:58 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_constants.c,v 1.63 2003/12/09 08:56:04 andi Exp $ */
+/* $Id: zend_constants.c,v 1.64 2003/12/12 00:16:58 iliaa Exp $ */
#include "zend.h"
#include "zend_constants.h"
@@ -38,7 +38,7 @@
void copy_zend_constant(zend_constant *c)
{
- c->name = zend_strndup(c->name, c->name_len);
+ c->name = zend_strndup(c->name, c->name_len - 1);
if (!(c->flags & CONST_PERSISTENT)) {
zval_copy_ctor(&c->value);
}