AppNearMe µNFC stack for the NXP PN532 chip License: You can use the stack free of charge to prototype with mbed; if you want to use the stack with your commercial product, get in touch!

Dependents:   IOT_sensor_nfc AppNearMe_MuNFC_PN532_Test p2p_nfc_test NFCMoodLamp ... more

License

You can use the stack free of charge to prototype with mbed; if you want to use the stack with your commercial product, get in touch!

Files at this revision

API Documentation at this revision

Comitter:
AppNearMe
Date:
Thu Jul 26 09:13:04 2012 +0000
Parent:
0:480387549d89
Child:
2:913eb8fdfd9d
Commit message:
Fixed null-terminating char issue in TLVList::getString()

Changed in this revision

PN532/TLVList.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/PN532/TLVList.cpp	Thu Jul 26 09:12:27 2012 +0000
+++ b/PN532/TLVList.cpp	Thu Jul 26 09:13:04 2012 +0000
@@ -158,6 +158,7 @@
   }
   size_t len = MIN(maxLen, m_strLen);
   memcpy(str, m_str, len);
+  str[len] = '\0'; //Add null-terminating char
   return len;
 }
 
@@ -232,5 +233,3 @@
   return strlen(str);
 }
 
-
-