From: David ‘Bombe’ Roden Date: Sat, 5 Jul 2008 14:19:58 +0000 (+0200) Subject: return the number of read bytes X-Git-Tag: 0.1~40 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=18463fef6e30ad67e56c99d85ace7639beb7e5d0;p=ecparse.git return the number of read bytes --- diff --git a/FileReaderInput.cpp b/FileReaderInput.cpp index bd08f13..86d5b0f 100644 --- a/FileReaderInput.cpp +++ b/FileReaderInput.cpp @@ -16,7 +16,7 @@ int FileReaderInput::read(void* buffer, size_t length) { size_t readBytes; readBytes = fread(buffer, 1, length, file); - return 0; + return readBytes; } bool FileReaderInput::isEOF() {