Cliparser fix
Fix CLIGetStrwithRetrun Allows casting and requires the buffer length to be passed in. Existing uses of the function have been updated.
This commit is contained in:
committed by
Philippe Teuwen
parent
8aa70b37e3
commit
bb59250eca
@@ -1435,7 +1435,7 @@ static int CmdEMVScan(const char *Cmd) {
|
||||
uint8_t psenum = (channel == ECC_CONTACT) ? 1 : 2;
|
||||
|
||||
uint8_t filename[FILE_PATH_SIZE] = {0};
|
||||
int filenamelen = 0;
|
||||
int filenamelen = sizeof(filename);
|
||||
CLIGetStrWithReturn(ctx, 12, filename, &filenamelen);
|
||||
|
||||
CLIParserFree(ctx);
|
||||
|
||||
Reference in New Issue
Block a user