diff options
author | Dmitry Stogov <dmitry@zend.com> | 2015-06-30 04:05:24 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2015-06-30 04:05:24 +0300 |
commit | 4a2e40bb861bc3cf5fb6863e57486ed60316e97c (patch) | |
tree | 6579660b282fdd1bc50095e48d702913a0b6aa97 /ext/shmop | |
parent | 8cce5b2641fb91c3073018b59f6f044b843041a8 (diff) | |
download | php-git-4a2e40bb861bc3cf5fb6863e57486ed60316e97c.tar.gz |
Use ZSTR_ API to access zend_string elements (this is just renaming without semantick changes).
Diffstat (limited to 'ext/shmop')
-rw-r--r-- | ext/shmop/shmop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/shmop/shmop.c b/ext/shmop/shmop.c index 1b77c35f26..cf2084a743 100644 --- a/ext/shmop/shmop.c +++ b/ext/shmop/shmop.c @@ -327,8 +327,8 @@ PHP_FUNCTION(shmop_write) RETURN_FALSE; } - writesize = (data->len < shmop->size - offset) ? data->len : shmop->size - offset; - memcpy(shmop->addr + offset, data->val, writesize); + writesize = (ZSTR_LEN(data) < shmop->size - offset) ? ZSTR_LEN(data) : shmop->size - offset; + memcpy(shmop->addr + offset, ZSTR_VAL(data), writesize); RETURN_LONG(writesize); } |