mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
fix more strncat usage (one must specify available room, not total dest buffer size)
This commit is contained in:
parent
c147b434a2
commit
98ff923d61
2 changed files with 10 additions and 10 deletions
|
@ -796,7 +796,7 @@ int CmdHF15Restore(const char *Cmd) {
|
|||
case '2':
|
||||
case 'o':
|
||||
strncpy(newCmdPrefix, " ", sizeof(newCmdPrefix) - 1);
|
||||
strncat(newCmdPrefix, param, sizeof(newCmdPrefix) - 1);
|
||||
strncat(newCmdPrefix, param, sizeof(newCmdPrefix) - strlen(newCmdPrefix) - 1);
|
||||
break;
|
||||
default:
|
||||
PrintAndLogEx(WARNING, "Unknown parameter '%s'", param);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue