mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
pkd: fix snprintf compiler warning
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit bba5fa18ed)
This commit is contained in:
committed by
Anderson Toshiyuki Sasaki
parent
6a1dc7df87
commit
c7f35f4d49
@@ -610,7 +610,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); \
|
||||
|
||||
Reference in New Issue
Block a user