correct string formatter in sscanf

This commit is contained in:
iceman1001 2023-02-21 16:20:34 +01:00
commit 628140fd88
3 changed files with 3 additions and 3 deletions

View file

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