mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
pkd: fix snprintf compiler warning
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
1089948346
commit
bba5fa18ed
@@ -602,7 +602,7 @@ static void torture_pkd_runtest(const char *testname,
|
|||||||
#define emit_keytest(client, testname, sshcmd, setup, teardown) \
|
#define emit_keytest(client, testname, sshcmd, setup, teardown) \
|
||||||
static void torture_pkd_## client ## _ ## testname(void **state) { \
|
static void torture_pkd_## client ## _ ## testname(void **state) { \
|
||||||
const char *tname = "torture_pkd_" #client "_" #testname; \
|
const char *tname = "torture_pkd_" #client "_" #testname; \
|
||||||
char testcmd[1024] = { 0 }; \
|
char testcmd[2048] = { 0 }; \
|
||||||
(void) state; \
|
(void) state; \
|
||||||
snprintf(&testcmd[0], sizeof(testcmd), sshcmd, tname, tname); \
|
snprintf(&testcmd[0], sizeof(testcmd), sshcmd, tname, tname); \
|
||||||
torture_pkd_runtest(tname, testcmd); \
|
torture_pkd_runtest(tname, testcmd); \
|
||||||
|
|||||||
Reference in New Issue
Block a user