diff options
Diffstat (limited to 'sbin/md5/md5.c')
-rw-r--r-- | sbin/md5/md5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/md5/md5.c b/sbin/md5/md5.c index 8672d3f..454ada8 100644 --- a/sbin/md5/md5.c +++ b/sbin/md5/md5.c @@ -127,7 +127,7 @@ main(int argc, char *argv[]) if (strcasecmp(Algorithm[digest].progname, progname) == 0) break; - if (Algorithm[digest].progname == NULL) + if (digest == sizeof(Algorithm)/sizeof(*Algorithm)) digest = 0; failed = 0; |