mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-15 20:13:46 +00:00
Always set the size of Rx buffer (prevent from overflow)
This commit is contained in:
@@ -53,7 +53,7 @@ main (int argc, const char *argv[])
|
||||
nfc_device_t *pnd;
|
||||
nfc_target_t nt;
|
||||
byte_t abtRx[MAX_FRAME_LEN];
|
||||
size_t szRx;
|
||||
size_t szRx = sizeof(abtRx);
|
||||
byte_t abtTx[] = "Hello World!";
|
||||
|
||||
if (argc > 1) {
|
||||
|
||||
Reference in New Issue
Block a user