summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authormeri <meri@e0336214-984f-0b4b-a45f-81c69e1f0ede>2007-05-02 17:24:40 +0000
committermeri <meri@e0336214-984f-0b4b-a45f-81c69e1f0ede>2007-05-02 17:24:40 +0000
commitb798e2d500013335998d0db078761046b1ad306e (patch)
tree3bae870ab400698e7ea4fb43ce4305132e2b6fc4 /utils
parentb450423b5aec1e1bc2f9627f064ffba33c419aa7 (diff)
thanks to Abhisek Datta this nasty off-by-one bug could be fixed
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1994 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'utils')
-rw-r--r--utils/mifare-tool.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/mifare-tool.c b/utils/mifare-tool.c
index 58c0692..7c3a51e 100644
--- a/utils/mifare-tool.c
+++ b/utils/mifare-tool.c
@@ -102,8 +102,7 @@ int main(int argc, char **argv)
program_name = basename(argv[0]);
#endif/*__MINGW32__*/
- memcpy(key, MIFARE_CL_KEYA_DEFAULT_INFINEON,
- sizeof(MIFARE_CL_KEYA_DEFAULT_INFINEON));
+ memcpy(key, MIFARE_CL_KEYA_DEFAULT_INFINEON, MIFARE_CL_KEY_LEN);
printf("%s - (C) 2006 by Harald Welte\n"
"This program is Free Software and has "
personal git repositories of Harald Welte. Your mileage may vary