examples/pn53x-diagnose: fix memcmp strings coverage

This commit is contained in:
Romuald Conty 2011-04-28 13:35:05 +00:00
parent 7c274029e7
commit 59c4e69feb

View file

@ -89,7 +89,7 @@ main (int argc, const char *argv[])
result = pn53x_transceive (pnd, pncmd_diagnose_communication_line_test, sizeof (pncmd_diagnose_communication_line_test), abtRx, &szRx); result = pn53x_transceive (pnd, pncmd_diagnose_communication_line_test, sizeof (pncmd_diagnose_communication_line_test), abtRx, &szRx);
if (result) { if (result) {
result = (memcmp (pncmd_diagnose_communication_line_test + 2, abtRx, sizeof (pncmd_diagnose_communication_line_test) - 2) == 0); result = (memcmp (pncmd_diagnose_communication_line_test + 1, abtRx, sizeof (pncmd_diagnose_communication_line_test) - 1) == 0);
} else { } else {
nfc_perror (pnd, "pn53x_transceive"); nfc_perror (pnd, "pn53x_transceive");
} }