summaryrefslogtreecommitdiffstats
path: root/matchblox/common/textfile.cpp
diff options
context:
space:
mode:
authorWilrik de Loose <wilrik@wilrik.nl>2008-05-27 14:20:29 (GMT)
committerWilrik de Loose <wilrik@wilrik.nl>2008-05-27 14:20:29 (GMT)
commit47dcce1ed989159bbe0fc2a98ebeda4f5dc99772 (patch)
treee4574377e8fcbe866955015fdcb133f3e50d2bf8 /matchblox/common/textfile.cpp
parentc089caac3e3c87e2489982ec21c6f2dfec1bd8ed (diff)
download2iv55-47dcce1ed989159bbe0fc2a98ebeda4f5dc99772.zip
2iv55-47dcce1ed989159bbe0fc2a98ebeda4f5dc99772.tar.gz
2iv55-47dcce1ed989159bbe0fc2a98ebeda4f5dc99772.tar.bz2
menu + button afhandeling
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);