Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update nfc-utils.c for latest libnfc (r1116) #10

Closed
GoogleCodeExporter opened this issue Mar 13, 2015 · 2 comments
Closed

update nfc-utils.c for latest libnfc (r1116) #10

GoogleCodeExporter opened this issue Mar 13, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

nfc-utils.c should be updated to work with the current libnfc svn.
This change was introduced in libnfc r1116.

===================================================================
--- nfc-utils.c (revision 49)
+++ nfc-utils.c (working copy)
@@ -210,8 +210,7 @@
         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);

Original issue reported on code.google.com by maxx...@gmail.com on 22 Jul 2011 at 8:16

@GoogleCodeExporter
Copy link
Author

This issue was closed by revision r50.

Original comment by romu...@libnfc.org on 5 Sep 2011 at 3:24

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

after this change i'm not able to compile mfcuk

nfc-utils.c:213:20: error: ‘nfc_device_desc_t’ has no member named 
‘acPort’

Original comment by pelas...@gmail.com on 23 Sep 2011 at 6:57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant