mirror of
https://github.com/nfc-tools/mfoc.git
synced 2026-02-02 06:41:24 +00:00
Fix tolerance (-T) option (Fixes issue 102)
Thanks to fnargwibble
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user