diff options
author | Michael Wallner <mike@php.net> | 2013-10-08 11:16:53 +0200 |
---|---|---|
committer | Michael Wallner <mike@php.net> | 2013-10-08 11:16:53 +0200 |
commit | 5d430ad90257e353321789d9dfe529554028ff6e (patch) | |
tree | 5d706da750cdda11f6a80285afc6c4f02ab9661c /ext/standard/php_fopen_wrapper.c | |
parent | b15765412aebb6b158465f26d8eedb85737862d8 (diff) | |
download | php-git-5d430ad90257e353321789d9dfe529554028ff6e.tar.gz |
fix bad cast
Diffstat (limited to 'ext/standard/php_fopen_wrapper.c')
-rw-r--r-- | ext/standard/php_fopen_wrapper.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/php_fopen_wrapper.c b/ext/standard/php_fopen_wrapper.c index 76f77ebf7b..0adb1e0529 100644 --- a/ext/standard/php_fopen_wrapper.c +++ b/ext/standard/php_fopen_wrapper.c @@ -120,11 +120,11 @@ static int php_stream_input_flush(php_stream *stream TSRMLS_DC) /* {{{ */ static int php_stream_input_seek(php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC) /* {{{ */ { - php_stream *inner = stream->abstract; + php_stream_input_t *input = stream->abstract; - if (inner) { - int sought = php_stream_seek(inner, offset, whence); - *newoffset = inner->position; + if (*input->body_ptr) { + int sought = php_stream_seek(*input->body_ptr, offset, whence); + *newoffset = (*input->body_ptr)->position; return sought; } |