mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-12 02:58:35 +08:00
use sizeof
This commit is contained in:
parent
ff194eb861
commit
2f33682035
1 changed files with 1 additions and 1 deletions
|
@ -1242,7 +1242,7 @@ int CmdHF15Write(const char *Cmd) {
|
||||||
char *cmd = cmdbuf;
|
char *cmd = cmdbuf;
|
||||||
char *cmd2;
|
char *cmd2;
|
||||||
|
|
||||||
strncpy(cmd, Cmd, 99);
|
strncpy(cmd, Cmd, sizeof(cmdbuf) - 1);
|
||||||
|
|
||||||
if (!prepareHF15Cmd(&cmd, &c, ISO15_CMD_WRITE))
|
if (!prepareHF15Cmd(&cmd, &c, ISO15_CMD_WRITE))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue