diff options
author | Xinchen Hui <laruence@gmail.com> | 2014-02-11 19:30:42 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2014-02-11 19:33:18 +0800 |
commit | 3f4c877bf7cff179b719364de1c6fd5ff8dd105f (patch) | |
tree | a13dcc4219b778ec9997380243ed0ea3075bb3c7 /Zend/zend_string.h | |
parent | 00244baba8f4e90861075ac9b73adea46bb21aaf (diff) | |
download | php-git-3f4c877bf7cff179b719364de1c6fd5ff8dd105f.tar.gz |
Use better data structures (incomplete)
Diffstat (limited to 'Zend/zend_string.h')
-rw-r--r-- | Zend/zend_string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_string.h b/Zend/zend_string.h index ca13e8aec3..dcbb9fce3e 100644 --- a/Zend/zend_string.h +++ b/Zend/zend_string.h @@ -109,7 +109,7 @@ static zend_always_inline zend_string *zend_str_init(const char *str, int len, i { zend_string *ret = STR_ALLOC(len, persistent); - memcpy(ret, str, len + 1); + memcpy(ret->val, str, len + 1); return ret; } |