time is 64b better to accept the same size input timestamps

This commit is contained in:
iceman1001 2023-02-21 04:40:48 +01:00
commit 49a475899a
3 changed files with 9 additions and 4 deletions

View file

@ -233,7 +233,8 @@ int main(int argc, char *argv[]) {
if (argc != 4) return usage(argv[0]);
uint64_t start_time = atoi(argv[1]);
uint64_t start_time = 0;
sscanf(argv[1], "%lu", &start_time);
uint8_t tag_challenge[16] = {0x00};
if (hexstr_to_byte_array(argv[2], tag_challenge, sizeof(tag_challenge)))