From 6a3977545eebe12ea3c05d34ad2a2576f84a74ee Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Wed, 2 Feb 2011 10:46:16 +0000 Subject: [PATCH] use strtoll() function in order to retrieve 64bits wide value. (Fixes Issue 55) --- src/mfoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mfoc.c b/src/mfoc.c index 449ec9d..eef032c 100644 --- a/src/mfoc.c +++ b/src/mfoc.c @@ -126,7 +126,7 @@ int main(int argc, char * const argv[]) { exit(1); } else { bzero(defKey, 6); - num_to_bytes(strtol(optarg, NULL, 16), 6, defKey); + num_to_bytes(strtoll(optarg, NULL, 16), 6, defKey); memcpy(defaultKeys[0], defKey, 6); } fprintf(stdout, "The custom key 0x%012llx has been added to the default keys\n", bytes_to_num(defKey, 6));