mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-09 17:56:53 +08:00
fix: remove warnings
This commit is contained in:
parent
4573f7b006
commit
7bb8c629ba
1 changed files with 3 additions and 3 deletions
|
@ -1294,9 +1294,9 @@ int CmdHF14AMfNestedHard(const char *Cmd) {
|
|||
case 'r':
|
||||
fptr = GenerateFilename("hf-mf-","-nonces.bin");
|
||||
if (fptr == NULL)
|
||||
strncpy(filename,"nonces.bin", FILE_PATH_SIZE);
|
||||
strncpy(filename, "nonces.bin", FILE_PATH_SIZE);
|
||||
else
|
||||
strncpy(filename,fptr, FILE_PATH_SIZE);
|
||||
strncpy(filename, fptr, FILE_PATH_SIZE-1);
|
||||
|
||||
nonce_file_read = true;
|
||||
if (!param_gethex(Cmd, cmdp+1, trgkey, 12)) {
|
||||
|
@ -1367,7 +1367,7 @@ int CmdHF14AMfNestedHard(const char *Cmd) {
|
|||
fptr = GenerateFilename("hf-mf-","-nonces.bin");
|
||||
if (fptr == NULL)
|
||||
return 1;
|
||||
strncpy(filename, fptr, FILE_PATH_SIZE);
|
||||
strncpy(filename, fptr, FILE_PATH_SIZE-1);
|
||||
break;
|
||||
case 'u':
|
||||
param_getstr(Cmd, cmdp+1, szTemp, FILE_PATH_SIZE-20);
|
||||
|
|
Loading…
Reference in a new issue