1
0
mirror of https://github.com/Yubico/yubico-pam.git synced 2025-03-15 18:29:16 +01:00

Avoid warnings for fscanf() by passing pointer to first element of array.

This commit is contained in:
Fredrik Thulin 2012-02-10 14:14:58 +01:00
parent bcdfbfa128
commit e9c6c97d88

2
util.c
View File

@ -260,7 +260,7 @@ load_chalresp_state(FILE *f, CR_STATE *state)
* 40 is twice the size of CR_RESPONSE_SIZE
* (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) {
D(("Could not parse contents of chalres_state file (%i)", r));
goto out;