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

@@ -55,7 +55,7 @@ main (int argc, const char *argv[])
bool result;
byte_t abtRx[PN53x_EXTENDED_FRAME__DATA_MAX_LEN];
size_t szRx;
size_t szRx = sizeof(abtRx);
const byte_t pncmd_diagnose_communication_line_test[] = { 0xD4, 0x00, 0x00, 0x06, 'l', 'i', 'b', 'n', 'f', 'c' };
const byte_t pncmd_diagnose_rom_test[] = { 0xD4, 0x00, 0x01 };
const byte_t pncmd_diagnose_ram_test[] = { 0xD4, 0x00, 0x02 };