From 51d1bb2aaa2c01a1e4f62299a4e9c4a6d2068795 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 13 Dec 2017 10:44:21 +0100 Subject: [PATCH] chg: 'hf iclass chk' - unsigned long long. --- client/cmdhficlass.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/cmdhficlass.c b/client/cmdhficlass.c index 8372b9409..94546ea8f 100644 --- a/client/cmdhficlass.c +++ b/client/cmdhficlass.c @@ -1874,7 +1874,7 @@ int CmdHFiClassCheckKeys(const char *Cmd) { keyBlock = p; memset(keyBlock + 8 * keycnt, 0, 8); - num_to_bytes(strtoll(buf, NULL, 16), 8, keyBlock + 8 * keycnt); + num_to_bytes(strtoull(buf, NULL, 16), 8, keyBlock + 8 * keycnt); PrintAndLog("check key[%2d] %016" PRIx64, keycnt, bytes_to_num(keyBlock + 8*keycnt, 8)); keycnt++; @@ -1882,7 +1882,6 @@ int CmdHFiClassCheckKeys(const char *Cmd) { } fclose(f); PrintAndLog("Loaded %2d keys from %s", keycnt, filename); - // time uint64_t t1 = msclock();