From b0c2ca1b6621353dd7b573bb331e635efab9cc84 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Wed, 11 May 2016 18:01:08 +0200 Subject: [PATCH] tests: fix buffer overflow in testcase --- tests/client/torture_auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/client/torture_auth.c b/tests/client/torture_auth.c index 96fceb77..673ba467 100644 --- a/tests/client/torture_auth.c +++ b/tests/client/torture_auth.c @@ -112,7 +112,7 @@ static int agent_setup(void **state) assert_non_null(pwd); snprintf(ssh_agent_sock, - sizeof(ssh_agent_cmd), + sizeof(ssh_agent_sock), "%s/agent.sock", s->socket_dir);