return the number of read bytes
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 5 Jul 2008 14:19:58 +0000 (16:19 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 5 Jul 2008 14:19:58 +0000 (16:19 +0200)
FileReaderInput.cpp

index bd08f13..86d5b0f 100644 (file)
@@ -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() {