1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-31 00:03:07 +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); assert_non_null(pwd);
snprintf(ssh_agent_sock, snprintf(ssh_agent_sock,
sizeof(ssh_agent_cmd), sizeof(ssh_agent_sock),
"%s/agent.sock", "%s/agent.sock",
s->socket_dir); s->socket_dir);