mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
check len instead of the actual buffer as per iceman request
This commit is contained in:
parent
964d011b22
commit
4b5913cc7c
1 changed files with 2 additions and 2 deletions
|
@ -2698,7 +2698,7 @@ static int CmdHF14AMfAutoPWN(const char *Cmd) {
|
|||
|
||||
// read uid to generate a filename for the key file
|
||||
char suffix[FILE_PATH_SIZE];
|
||||
if (outfilename[0] != '\0') {
|
||||
if (outfnlen) {
|
||||
snprintf(suffix, sizeof(suffix), "-key-%s.bin", outfilename);
|
||||
} else {
|
||||
snprintf(suffix, sizeof(suffix), "-key.bin");
|
||||
|
@ -3232,7 +3232,7 @@ all_found:
|
|||
|
||||
free(fptr);
|
||||
|
||||
if (outfilename[0] != '\0') {
|
||||
if (outfnlen) {
|
||||
snprintf(suffix, sizeof(suffix), "-dump-%s", outfilename);
|
||||
} else {
|
||||
snprintf(suffix, sizeof(suffix), "-dump");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue