Always set the size of Rx buffer (prevent from overflow)

This commit is contained in:
Romuald Conty 2011-03-02 15:02:30 +00:00
parent 5af845cdfc
commit 4b6ba0aa3c
10 changed files with 12 additions and 12 deletions

View file

@ -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) {