diff options
author | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2006-09-22 21:00:27 +0000 |
---|---|---|
committer | laforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede> | 2006-09-22 21:00:27 +0000 |
commit | 1b891c2d37b9225d6d9e80bc7f16f4ae78cc5a83 (patch) | |
tree | 1af14c6e46b5f336776d52d310eaeb0b9e0b1dc5 /src | |
parent | 66547428ea4535546c401bf3fd8e8a2702402daa (diff) |
memset the size of the structure, rather than the pointer to it. Usually this problem results in memsetting too litttle... but here we actually have a less-than-four-byte-structure and we end up messing up the stack :(
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1886 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'src')
-rw-r--r-- | src/rfid_asic_rc632.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rfid_asic_rc632.c b/src/rfid_asic_rc632.c index ac3df2c..39e1273 100644 --- a/src/rfid_asic_rc632.c +++ b/src/rfid_asic_rc632.c @@ -758,7 +758,7 @@ rc632_iso14443a_transceive_sf(struct rfid_asic_handle *handle, u_int8_t tx_buf[1]; u_int8_t rx_len = 2; - memset(atqa, 0, sizeof(atqa)); + memset(atqa, 0, sizeof(*atqa)); tx_buf[0] = cmd; |