summaryrefslogtreecommitdiff
path: root/hieronymus/hieronymus.c
diff options
context:
space:
mode:
authorneal <neal>2008-07-04 08:46:17 +0000
committerneal <neal>2008-07-04 08:46:17 +0000
commit0fb987ccdd3f60891addfe960ec4d73d60270cf5 (patch)
treec2b207f9d66df7e4098b3c0163bd7fb22df68dfc /hieronymus/hieronymus.c
parentb265d0e66f3de43b025285ff3f1324491a8fc5b7 (diff)
2008-07-04 Neal H. Walfield <neal@gnu.org>
* hieronymus.c (main): Fix mask when extracting hexadecimal digits.
Diffstat (limited to 'hieronymus/hieronymus.c')
-rw-r--r--hieronymus/hieronymus.c4
1 files changed, 2 insertions, 2 deletions
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);