From 02afffce079f815dbf4b8d20e079ef5b643dc031 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Sun, 14 Oct 2012 10:35:37 +0000 Subject: [PATCH] Fix tolerance (-T) option (Fixes issue 102) Thanks to fnargwibble --- src/mfoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mfoc.c b/src/mfoc.c index 11b6fad..5d34d88 100644 --- a/src/mfoc.c +++ b/src/mfoc.c @@ -126,7 +126,7 @@ int main(int argc, char * const argv[]) { { int res; // Nonce tolerance range - if (((res = atoi(optarg)) != 0) || (res < 0)) { + if (((res = atoi(optarg)) < 0)) { ERR ("The nonce distances range must be a zero or a positive number"); exit (EXIT_FAILURE); }