mirror of
https://github.com/nfc-tools/mfcuk.git
synced 2025-12-23 18:50:06 +00:00
Update nfc-utils.c for latest libnfc (Fixes Issue 10)
Thanks to maxx.
This commit is contained in:
parent
f60206aeba
commit
56eafde34b
@ -210,8 +210,7 @@ nfc_device_desc_t* parse_device_desc(int argc, const char *argv[], size_t* szFou
|
||||
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…
x
Reference in New Issue
Block a user