mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 13:00:42 -07:00
more strncpy fix
This commit is contained in:
parent
df55154649
commit
a561370f8d
2 changed files with 2 additions and 2 deletions
|
@ -1336,7 +1336,7 @@ int CmdHF14AMfNestedHard(const char *Cmd) {
|
||||||
uint8_t key[6] = {0, 0, 0, 0, 0, 0};
|
uint8_t key[6] = {0, 0, 0, 0, 0, 0};
|
||||||
uint8_t trgkey[6] = {0, 0, 0, 0, 0, 0};
|
uint8_t trgkey[6] = {0, 0, 0, 0, 0, 0};
|
||||||
uint8_t cmdp = 0;
|
uint8_t cmdp = 0;
|
||||||
char filename[FILE_PATH_SIZE], *fptr;
|
char filename[FILE_PATH_SIZE] = {0}, *fptr;
|
||||||
char szTemp[FILE_PATH_SIZE - 20];
|
char szTemp[FILE_PATH_SIZE - 20];
|
||||||
char ctmp;
|
char ctmp;
|
||||||
|
|
||||||
|
|
|
@ -238,7 +238,7 @@ static char *asn1_oid_description(const char *oid, bool with_group_desc) {
|
||||||
memset(res, 0x00, sizeof(res));
|
memset(res, 0x00, sizeof(res));
|
||||||
|
|
||||||
size_t len = strlen(get_my_executable_directory());
|
size_t len = strlen(get_my_executable_directory());
|
||||||
if (len > 300) len = 299;
|
if (len >= 300) len = 299;
|
||||||
|
|
||||||
strncpy(fname, get_my_executable_directory(), len);
|
strncpy(fname, get_my_executable_directory(), len);
|
||||||
strcat(fname, "crypto/oids.json");
|
strcat(fname, "crypto/oids.json");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue