diff options
-rw-r--r-- | src/inputStream_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inputStream_file.c b/src/inputStream_file.c index 876d10c5a..2b05489c9 100644 --- a/src/inputStream_file.c +++ b/src/inputStream_file.c @@ -69,7 +69,7 @@ size_t inputStream_fileRead(InputStream * inStream, void * ptr, size_t size, readSize = fread(ptr,size,nmemb,(FILE *)inStream->data); - if(readSize>0) inStream->offset+=readSize*size; + inStream->offset = ftell((FILE *)inStream->data); return readSize; } |