From 2f69fb99e5dd709416bf6b80ec85e160a748c47a Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Wed, 18 Sep 2013 15:37:24 +0200 Subject: [PATCH] move around to avoid warning --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index ac3b269..6bd4adf 100644 --- a/util.c +++ b/util.c @@ -216,8 +216,8 @@ get_user_challenge_file(YK_KEY *yk, const char *chalresp_path, const char *usern /* 0xffffffff == 4294967295 == 10 digits */ len = strlen(chalresp_path == NULL ? "challenge" : username) + 1 + 10 + 1; if ((filename = malloc(len)) != NULL) { - filename_malloced = 1; int res = snprintf(filename, len, "%s-%i", chalresp_path == NULL ? "challenge" : username, serial); + filename_malloced = 1; if (res < 0 || res > len) { /* Not enough space, strangely enough. */ filename = NULL;