mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-03-16 03:29:17 +01:00
Avoid warnings for fscanf() by passing pointer to first element of array.
This commit is contained in:
parent
bcdfbfa128
commit
e9c6c97d88
2
util.c
2
util.c
@ -260,7 +260,7 @@ load_chalresp_state(FILE *f, CR_STATE *state)
|
|||||||
* 40 is twice the size of CR_RESPONSE_SIZE
|
* 40 is twice the size of CR_RESPONSE_SIZE
|
||||||
* (twice because we hex encode the challenge and response)
|
* (twice because we hex encode the challenge and response)
|
||||||
*/
|
*/
|
||||||
r = fscanf(f, "v1:%126[0-9a-z]:%40[0-9a-z]:%d", &challenge_hex, &response_hex, &slot);
|
r = fscanf(f, "v1:%126[0-9a-z]:%40[0-9a-z]:%d", &challenge_hex[0], &response_hex[0], &slot);
|
||||||
if (r != 3) {
|
if (r != 3) {
|
||||||
D(("Could not parse contents of chalres_state file (%i)", r));
|
D(("Could not parse contents of chalres_state file (%i)", r));
|
||||||
goto out;
|
goto out;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user