From: iceman1001 Date: Mon, 8 Aug 2016 19:27:53 +0000 (+0200) Subject: FIX: the cmdline parsing was a bit too hard. Thanks to @crayon for pointing out... X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/471f89b8bd55837563002f4270d7a2fdb416684a FIX: the cmdline parsing was a bit too hard. Thanks to @crayon for pointing out there were a bug here. --- diff --git a/client/cmdlfawid.c b/client/cmdlfawid.c index cd494dbb..89327c93 100644 --- a/client/cmdlfawid.c +++ b/client/cmdlfawid.c @@ -276,7 +276,7 @@ int CmdAWIDBrute(const char *Cmd){ memset(bs, 0x00, size); char cmdp = param_getchar(Cmd, 0); - if (strlen(Cmd) > 4 || strlen(Cmd) == 0 || cmdp == 'h' || cmdp == 'H') return usage_lf_awid_brute(); + if (strlen(Cmd) == 0 || cmdp == 'h' || cmdp == 'H') return usage_lf_awid_brute(); fmtlen = param_get8(Cmd, 0); fc = param_get32ex(Cmd, 1, 0, 10);