mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-01 05:07:03 +08:00
wrong string formatter
This commit is contained in:
parent
b09c3ac67c
commit
dfdaa41987
1 changed files with 1 additions and 1 deletions
|
@ -860,7 +860,7 @@ int param_getbin_to_eol(const char *line, int paramnum, uint8_t *data, int maxda
|
|||
|
||||
if (strlen(buf) > 0) {
|
||||
uint32_t temp = 0;
|
||||
sscanf(buf, "%d", &temp);
|
||||
sscanf(buf, "%u", &temp);
|
||||
data[*datalen] = (uint8_t)(temp & 0xff);
|
||||
*buf = 0;
|
||||
(*datalen)++;
|
||||
|
|
Loading…
Reference in a new issue