mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 11:10:29 +08:00
Merge pull request #422 from wryun/fix-totp-lfs-error-params
Fix TOTP LFS printf string
This commit is contained in:
commit
8aa1a3f8fa
|
@ -216,7 +216,7 @@ static uint8_t *totp_face_lfs_get_file_secret(struct totp_record *record) {
|
|||
return current_secret;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue