]> granicus.if.org Git - php/commitdiff
fix bad cast
authorMichael Wallner <mike@php.net>
Tue, 8 Oct 2013 09:16:53 +0000 (11:16 +0200)
committerMichael Wallner <mike@php.net>
Tue, 8 Oct 2013 09:16:53 +0000 (11:16 +0200)
ext/standard/php_fopen_wrapper.c

index 76f77ebf7b5f439dd53d6ee25f93ce0700055542..0adb1e05290a02ad89303a2a6c06a296bfa16c8e 100644 (file)
@@ -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;
        }