Always set the size of Rx buffer (prevent from overflow)
This commit is contained in:
parent
5af845cdfc
commit
4b6ba0aa3c
10 changed files with 12 additions and 12 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue