diff options
author | Simon Tatham <anakin@pobox.com> | 2017-05-18 18:49:00 +0100 |
---|---|---|
committer | Simon Tatham <anakin@pobox.com> | 2017-05-18 18:49:00 +0100 |
commit | 4b3314ff48cb373d9933a5b731b5e476849f5579 (patch) | |
tree | 146a2a3b28c82f78521d5b0985816eff6a308db4 | |
parent | ee4341de514d33c1b622939597308042219caae1 (diff) | |
download | wix-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |