aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/inputStream_file.c2
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;
}