diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-10-07 21:32:43 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-10-07 21:32:43 +0000 |
commit | 93b9bfd3bde24a76bf7ef58b71f0d8757d3b38e5 (patch) | |
tree | c9f54aecab83c1abbab3776d4ac6cd6215f509eb /src/gui/updatewindow.cpp | |
parent | 001c91ff66818a0f1a6839df2ba2a1c4d3220160 (diff) | |
download | mana-93b9bfd3bde24a76bf7ef58b71f0d8757d3b38e5.tar.gz mana-93b9bfd3bde24a76bf7ef58b71f0d8757d3b38e5.tar.bz2 mana-93b9bfd3bde24a76bf7ef58b71f0d8757d3b38e5.tar.xz mana-93b9bfd3bde24a76bf7ef58b71f0d8757d3b38e5.zip |
Fixed some compiler warnings. This probably also fixed the logging of several
error messages.
Diffstat (limited to 'src/gui/updatewindow.cpp')
-rw-r--r-- | src/gui/updatewindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp index 42b6e9bc..518abda2 100644 --- a/src/gui/updatewindow.cpp +++ b/src/gui/updatewindow.cpp @@ -58,9 +58,9 @@ unsigned long fadler32(FILE *file) // Calculate Adler-32 checksum char *buffer = (char*) malloc(fileSize); - fread(buffer, 1, fileSize, file); + const size_t read = fread(buffer, 1, fileSize, file); unsigned long adler = adler32(0L, Z_NULL, 0); - adler = adler32(adler, (Bytef*) buffer, fileSize); + adler = adler32(adler, (Bytef*) buffer, read); free(buffer); return adler; |