From 59c4e69feb5ac188c88118130d977a7055e77e04 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Thu, 28 Apr 2011 13:35:05 +0000 Subject: [PATCH] examples/pn53x-diagnose: fix memcmp strings coverage --- examples/pn53x-diagnose.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pn53x-diagnose.c b/examples/pn53x-diagnose.c index 7f402a6..aea6597 100644 --- a/examples/pn53x-diagnose.c +++ b/examples/pn53x-diagnose.c @@ -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); 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 { nfc_perror (pnd, "pn53x_transceive"); }