unified usage of sizeof. found some potential memory corruptions with that.

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@341 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-10-26 18:41:13 +00:00
parent a233d19691
commit 898fa7885a
5 changed files with 26 additions and 26 deletions

View File

@@ -89,7 +89,7 @@ int build_apdu(sc_context_t *ctx, const u8 *buf, size_t len, sc_apdu_t *apdu)
return SC_ERROR_INVALID_DATA;
}
memset(apdu, 0, sizeof(*apdu));
memset(apdu, 0, sizeof *apdu);
p = buf;
apdu->cla = *p++;
apdu->ins = *p++;