CmdHF15Write: make sure truncated string is null-terminated
This commit is contained in:
1 parent
247245121c
commit
ff194eb861
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user