mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-06 13:01:37 -07:00
correct string formatter in sscanf
This commit is contained in:
parent
b86e29fca1
commit
628140fd88
3 changed files with 3 additions and 3 deletions
|
@ -112,7 +112,7 @@ int main(int argc, char *argv[]) {
|
|||
uint8_t lock_challenge[32] = {0x00};
|
||||
|
||||
uint64_t timestamp = 0;
|
||||
sscanf(argv[1], "%lu", ×tamp);
|
||||
sscanf(argv[1], "%"PRIu64, ×tamp);
|
||||
|
||||
if (argc != 4) {
|
||||
printf("\nusage: %s <unix timestamp> <16 byte tag challenge> <32 byte lock challenge>\n\n", argv[0]);
|
||||
|
|
|
@ -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)))
|
||||
|
|
|
@ -379,7 +379,7 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
|
||||
uint64_t start_time = 0;
|
||||
sscanf(argv[3], "%lu", &start_time);
|
||||
sscanf(argv[3], "%"PRIu64, &start_time);
|
||||
|
||||
printf("Crypto algo............ " _GREEN_("%s") "\n", algostr);
|
||||
printf("LCR Random generator... " _GREEN_("%s") "\n", generators[g_idx].Name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue