drivers/pn532_uart,arygon: Make valgrind happy with UART-based drivers
This commit is contained in:
parent
e6051ceca4
commit
eec2794d2d
5 changed files with 82 additions and 61 deletions
|
|
@ -696,8 +696,7 @@ parse_args (int argc, const char *argv[], size_t * szFound, bool * verbose)
|
|||
strcpy (pndd->pcDriver, strtok (buffer, ":"));
|
||||
|
||||
// Port.
|
||||
pndd->pcPort = (char *) malloc (256);
|
||||
strcpy (pndd->pcPort, strtok (NULL, ":"));
|
||||
strcpy (pndd->acPort, strtok (NULL, ":"));
|
||||
|
||||
// Speed.
|
||||
sscanf (strtok (NULL, ":"), "%u", &pndd->uiSpeed);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue