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:
@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user