mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
check len instead of the actual buffer as per iceman request
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user