1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-29 13:01:13 +03:00

tests: fix buffer overflow in testcase

This commit is contained in:
Aris Adamantiadis
2016-05-11 18:01:08 +02:00
parent c50f2d1356
commit b0c2ca1b66

View File

@ -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);