aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2017-05-18 18:49:00 +0100
committerSimon Tatham <anakin@pobox.com>2017-05-18 18:49:00 +0100
commit4b3314ff48cb373d9933a5b731b5e476849f5579 (patch)
tree146a2a3b28c82f78521d5b0985816eff6a308db4
parentee4341de514d33c1b622939597308042219caae1 (diff)
downloadwix-on-linux-4b3314ff48cb373d9933a5b731b5e476849f5579.tar.gz
wix-on-linux-4b3314ff48cb373d9933a5b731b5e476849f5579.tar.bz2
wix-on-linux-4b3314ff48cb373d9933a5b731b5e476849f5579.zip
Fix parenthesis goof in the revised file-MD5ing code.
Every block I read was being condensed down to one byte.
-rw-r--r--md5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/md5.c b/md5.c
index 71dfc9b..2fbbeec 100644
--- a/md5.c
+++ b/md5.c
@@ -249,7 +249,7 @@ uint32_t MsiGetFileHashW(const char16_t *filename, uint32_t options,
249 249
250 MD5Init(&ctx); 250 MD5Init(&ctx);
251 251
252 while ((retd = read(fd, buffer, sizeof(buffer)) > 0)) 252 while ((retd = read(fd, buffer, sizeof(buffer))) > 0)
253 MD5Update(&ctx, buffer, retd); 253 MD5Update(&ctx, buffer, retd);
254 if (retd < 0) { 254 if (retd < 0) {
255 warnx("MsiGetFileHash(%s) -> ERROR_READ_FAULT", fname); 255 warnx("MsiGetFileHash(%s) -> ERROR_READ_FAULT", fname);