episage / sharp-nfc

.NET wrapper for libnfc project
15 stars 13 forks source link

Fixed Memory Handling in ListDeviceNames() in NFCContext.cs #4

Closed TeeTrizZz closed 8 years ago

TeeTrizZz commented 8 years ago

The type nfc_connstring is defined as typedef char nfc_connstring[NFC_BUFSIZE_CONNSTRING]; in nfc-types.h. Therefore, the pointer has to be moved by NFC_BUFSIZE_CONNSTRING (1024) bytes in order to get the next device name.

episage commented 8 years ago

@TeeTrizZz Thank's for the fix