summaryrefslogtreecommitdiffstats
path: root/matchblox/common/textfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'matchblox/common/textfile.cpp')
-rw-r--r--matchblox/common/textfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/matchblox/common/textfile.cpp b/matchblox/common/textfile.cpp
index 0b74282..db3a2f1 100644
--- a/matchblox/common/textfile.cpp
+++ b/matchblox/common/textfile.cpp
@@ -34,7 +34,7 @@ char *textFileRead(char *fn) {
if (count > 0) {
content = (char *)malloc(sizeof(char) * (count+1));
- count = fread(content,sizeof(char),count,fp);
+ count = fread(content,sizeof(char),(size_t)count,fp);
content[count] = '\0';
}
fclose(fp);