From bba5fa18ed81fdac8f69e1d2389f8084d56b076b Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Sun, 20 Oct 2019 01:20:00 +0200 Subject: [PATCH] pkd: fix snprintf compiler warning Signed-off-by: Aris Adamantiadis Reviewed-by: Andreas Schneider --- tests/pkd/pkd_hello.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pkd/pkd_hello.c b/tests/pkd/pkd_hello.c index 4233fe77..dd321850 100644 --- a/tests/pkd/pkd_hello.c +++ b/tests/pkd/pkd_hello.c @@ -602,7 +602,7 @@ static void torture_pkd_runtest(const char *testname, #define emit_keytest(client, testname, sshcmd, setup, teardown) \ static void torture_pkd_## client ## _ ## testname(void **state) { \ const char *tname = "torture_pkd_" #client "_" #testname; \ - char testcmd[1024] = { 0 }; \ + char testcmd[2048] = { 0 }; \ (void) state; \ snprintf(&testcmd[0], sizeof(testcmd), sshcmd, tname, tname); \ torture_pkd_runtest(tname, testcmd); \