From b798e2d500013335998d0db078761046b1ad306e Mon Sep 17 00:00:00 2001 From: meri Date: Wed, 2 May 2007 17:24:40 +0000 Subject: 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 --- utils/mifare-tool.c | 3 +-- 1 file changed, 1 insertion(+), 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 " -- cgit v1.2.3