mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-07-23 20:21:51 +00:00
Always set the size of Rx buffer (prevent from overflow)
This commit is contained in:
@@ -63,7 +63,7 @@ int main(int argc, const char* argv[])
|
||||
nfc_device_t* pnd;
|
||||
byte_t abtRx[MAX_FRAME_LEN];
|
||||
byte_t abtTx[MAX_FRAME_LEN] = { 0xD4 };
|
||||
size_t szRx;
|
||||
size_t szRx = sizeof(abtRx);
|
||||
size_t szTx;
|
||||
extern FILE* stdin;
|
||||
FILE* input = NULL;
|
||||
|
||||
Reference in New Issue
Block a user