From e9c6c97d8874aa9657d70a5d91a269dc528c9a2d Mon Sep 17 00:00:00 2001 From: Fredrik Thulin Date: Fri, 10 Feb 2012 14:14:58 +0100 Subject: [PATCH] Avoid warnings for fscanf() by passing pointer to first element of array. --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index af19bfe..1c36c61 100644 --- a/util.c +++ b/util.c @@ -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;