From 03d73c0b8d3fdacfda8d5fbc696c28f39655db62 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 17 Feb 2017 07:48:00 +0100 Subject: [PATCH] FIX: `lf guard sim` - helptext change and increase arguments expected check to 3 --- client/cmdlfguard.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/cmdlfguard.c b/client/cmdlfguard.c index 49b411d8..66cc396b 100644 --- a/client/cmdlfguard.c +++ b/client/cmdlfguard.c @@ -31,13 +31,13 @@ int usage_lf_guard_sim(void) { PrintAndLog("The facility-code is 8-bit and the card number is 16-bit. Larger values are truncated."); PrintAndLog("Currently work only on 26bit"); PrintAndLog(""); - PrintAndLog("Usage: lf guard sim "); + PrintAndLog("Usage: lf guard sim "); PrintAndLog("Options :"); PrintAndLog(" : format length 26|32|36|40"); PrintAndLog(" : 8-bit value facility code"); PrintAndLog(" : 16-bit value card number"); PrintAndLog(""); - PrintAndLog("Sample : lf guard sim 123 11223"); + PrintAndLog("Sample : lf guard sim 26 123 11223"); return 0; } @@ -207,7 +207,7 @@ int CmdGuardSim(const char *Cmd) { uint8_t bs[96]; memset(bs, 0x00, sizeof(bs)); - if (sscanf(Cmd, "%u %u %u", &fmtlen, &fc, &cn ) != 2) return usage_lf_guard_sim(); + if (sscanf(Cmd, "%u %u %u", &fmtlen, &fc, &cn ) != 3) return usage_lf_guard_sim(); fmtlen &= 0x7F; facilitycode = (fc & 0x000000FF); -- 2.39.2