summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hieronymus/ChangeLog5
-rw-r--r--hieronymus/hieronymus.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/hieronymus/ChangeLog b/hieronymus/ChangeLog
index 4bdbc76..59dd5f1 100644
--- a/hieronymus/ChangeLog
+++ b/hieronymus/ChangeLog
@@ -1,3 +1,8 @@
+2008-07-04 Neal H. Walfield <neal@gnu.org>
+
+ * hieronymus.c (main): Fix mask when extracting hexadecimal
+ digits.
+
2008-06-29 Neal H. Walfield <neal@gnu.org>
* Makefile.am (all-local): New target.
diff --git a/hieronymus/hieronymus.c b/hieronymus/hieronymus.c
index e7ad638..55f424b 100644
--- a/hieronymus/hieronymus.c
+++ b/hieronymus/hieronymus.c
@@ -231,12 +231,12 @@ main (int argc, char *argv[])
int j;
printf ("Expected md5 hash: ");
for (j = 0; j < 16; j ++)
- printf ("%x%x", modules[i].md5sum[j] & 0x15,
+ printf ("%x%x", modules[i].md5sum[j] & 0xf,
modules[i].md5sum[j] >> 4);
printf ("\nGot: ");
for (j = 0; j < 16; j ++)
- printf ("%x%x", result[j] & 0x15, result[j] >> 4);
+ printf ("%x%x", result[j] & 0xf, result[j] >> 4);
printf ("\n");
panic ("Binary %s corrupted!", modules[i].name);