summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-22 21:10:01 +0000
committerlaforge <laforge@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-09-22 21:10:01 +0000
commit3b1d90fae2efb52b0b3225be2d4a3dfde22adbbb (patch)
tree42b2d35f358fa329abe00e097e5c7ec9e38cdc16
parentcf4d20a642bf5ecc1f065c35a5479d0d2276f241 (diff)
fix a wrong memset length (we want length of atqa, not length of the pointer to it).
git-svn-id: https://svn.openpcd.org:2342/trunk@216 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
-rw-r--r--firmware/src/pcd/rc632_highlevel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/src/pcd/rc632_highlevel.c b/firmware/src/pcd/rc632_highlevel.c
index 34a28c7..825b760 100644
--- a/firmware/src/pcd/rc632_highlevel.c
+++ b/firmware/src/pcd/rc632_highlevel.c
@@ -650,7 +650,7 @@ rc632_iso14443a_transceive_sf(struct rfid_asic_handle *handle,
u_int8_t rx_len = 2;
DEBUGPCRF("");
- memset(atqa, 0, sizeof(atqa));
+ memset(atqa, 0, sizeof(*atqa));
tx_buf[0] = cmd;
personal git repositories of Harald Welte. Your mileage may vary