mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 19:20:30 +08:00
Fix TOTP LFS printf string
This commit is contained in:
parent
5ec3dca9e4
commit
222c60b072
|
@ -216,7 +216,7 @@ static uint8_t *totp_face_lfs_get_file_secret(struct totp_record *record) {
|
||||||
return current_secret;
|
return current_secret;
|
||||||
}
|
}
|
||||||
if (base32_decode((unsigned char *)buffer, current_secret) != record->secret_size) {
|
if (base32_decode((unsigned char *)buffer, current_secret) != record->secret_size) {
|
||||||
printf("TOTP can't properly decode secret from totp_uris.txt; failed at offset %d; read to %d\n", buffer, record->file_secret_offset, file_secret_offset);
|
printf("TOTP can't properly decode secret '%s' from totp_uris.txt; failed at offset %d; read to %ld\n", buffer, record->file_secret_offset, file_secret_offset);
|
||||||
}
|
}
|
||||||
return current_secret;
|
return current_secret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue