aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mot-encoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mot-encoder.cpp b/src/mot-encoder.cpp
index 7737230..8d8d9ce 100644
--- a/src/mot-encoder.cpp
+++ b/src/mot-encoder.cpp
@@ -1268,7 +1268,7 @@ int encodeFile(int output_fd, std::string& fname, int fidx, bool raw_slides)
}
// copy the file into the buffer:
- if (fread(blob, blobsize, 1, pFile) != blobsize) {
+ if (fread(blob, blobsize, 1, pFile) != 1) {
fprintf(stderr, "mot-encoder Error: Could not read file\n");
goto encodefile_out;
}