mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
CmdHF15Write: make sure truncated string is null-terminated
This commit is contained in:
parent
247245121c
commit
ff194eb861
1 changed files with 1 additions and 1 deletions
|
@ -1238,7 +1238,7 @@ int CmdHF15Write(const char *Cmd) {
|
|||
UsbCommand c = {CMD_ISO_15693_COMMAND, {0, 1, 1}}; // len,speed,recv?
|
||||
uint8_t *req = c.d.asBytes;
|
||||
int reqlen = 0, pagenum, temp;
|
||||
char cmdbuf[100];
|
||||
char cmdbuf[100] = {0};
|
||||
char *cmd = cmdbuf;
|
||||
char *cmd2;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue