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/standard/image.c | |
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/standard/image.c')
-rw-r--r-- | ext/standard/image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/image.c b/ext/standard/image.c index e1fa27e41b..0ea3abace2 100644 --- a/ext/standard/image.c +++ b/ext/standard/image.c @@ -231,9 +231,9 @@ static struct gfxinfo *php_handle_swc(php_stream * stream) */ do { - szlength = bufz->len * (1<<factor++); + szlength = ZSTR_LEN(bufz) * (1<<factor++); buf = (char *) erealloc(buf, szlength); - status = uncompress(buf, &szlength, bufz->val, bufz->len); + status = uncompress(buf, &szlength, ZSTR_VAL(bufz), ZSTR_LEN(bufz)); } while ((status==Z_BUF_ERROR)&&(factor<maxfactor)); if (bufz) { |