diff --git a/src/gfxinit.cpp b/src/gfxinit.cpp --- a/src/gfxinit.cpp +++ b/src/gfxinit.cpp @@ -415,7 +415,7 @@ MD5File::ChecksumResult MD5File::CheckMD Md5 checksum; uint8 buffer[1024]; - uint8 digest[16]; + MD5Hash digest; size_t len; while ((len = fread(buffer, 1, (size > sizeof(buffer)) ? sizeof(buffer) : size, f)) != 0 && size != 0) { @@ -426,7 +426,7 @@ MD5File::ChecksumResult MD5File::CheckMD FioFCloseFile(f); checksum.Finish(digest); - return memcmp(this->hash, digest, sizeof(this->hash)) == 0 ? CR_MATCH : CR_MISMATCH; + return this->hash == digest ? CR_MATCH : CR_MISMATCH; } /** Names corresponding to the GraphicsFileType */