CHG: The input handling for "hf 14b write" is now correct. Thanks Asper for spotting the fault.

Minor code clean up.
Added from Pm3-master which will make this fork one step closer to Pm3-master.
This commit is contained in:
iceman1001
2015-01-07 22:51:34 +01:00
parent c0e6c18bf5
commit 14edfd09c3
7 changed files with 77 additions and 47 deletions

View File

@@ -460,7 +460,7 @@ int CmdHF14AMfRestore(const char *Cmd)
default: numSectors = 16;
}
if (cmdp == 'h' || cmdp == 'H') {
if (strlen(Cmd) > 1 || cmdp == 'h' || cmdp == 'H') {
PrintAndLog("Usage: hf mf restore [card memory]");
PrintAndLog(" [card memory]: 0 = 320 bytes (Mifare Mini), 1 = 1K (default), 2 = 2K, 4 = 4K");
PrintAndLog("");