diff options
Diffstat (limited to 'src/inputStream_file.c')
-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 b71beea95..876d10c5a 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; + if(readSize>0) inStream->offset+=readSize*size; return readSize; } |