diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | nthash.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -14,7 +14,7 @@ all: nthash.c check: $(ECHO) -n "testing123" | ./nthash | \ - $(GREP) '^3e678b266d1d449e531e92bec33b6d27$$' + $(GREP) -q '^3e678b266d1d449e531e92bec33b6d27$$' install: $(INSTALL) -D -m0755 nthash $(DESTDIR)/usr/bin/nthash @@ -45,7 +45,7 @@ int main(int argc, char **argv) { md4_digest(&ctx, MD4_DIGEST_SIZE, digest); - for (i = 0; i < MD4_DIGEST_SIZE -1; i++) + for (i = 0; i < MD4_DIGEST_SIZE; i++) printf("%02x", digest[i]); putchar('\n'); |