mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-07-24 12:41:54 +00:00
Always set the size of Rx buffer (prevent from overflow)
This commit is contained in:
@@ -50,7 +50,7 @@ int
|
||||
main (int argc, const char *argv[])
|
||||
{
|
||||
byte_t abtRx[MAX_FRAME_LEN];
|
||||
size_t szRx;
|
||||
size_t szRx = sizeof(abtRx);
|
||||
size_t szDeviceFound;
|
||||
byte_t abtTx[] = "Hello Mars!";
|
||||
nfc_device_t *pnd;
|
||||
|
||||
Reference in New Issue
Block a user