diff options
Diffstat (limited to 'src/inputStream_file.c')
-rw-r--r-- | src/inputStream_file.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/inputStream_file.c b/src/inputStream_file.c index eea1d11aa..9b5a1a62d 100644 --- a/src/inputStream_file.c +++ b/src/inputStream_file.c @@ -71,12 +71,11 @@ int inputStream_fileSeek(struct input_stream *inStream, long offset, } size_t inputStream_fileRead(struct input_stream *inStream, - void *ptr, size_t size, - size_t nmemb) + void *ptr, size_t size) { size_t readSize; - readSize = fread(ptr, size, nmemb, (FILE *) inStream->data); + readSize = fread(ptr, 1, size, (FILE *) inStream->data); if (readSize <= 0 && ferror((FILE *) inStream->data)) { inStream->error = errno; DEBUG("inputStream_fileRead: error reading: %s\n", |