mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-05-28 17:41:28 +03:00
bind.c: Add missing size constant to err_msg
Signed-off-by: Norbert Pocs <npocs@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit e53a2711d3e4459c06b4d8facaca7195902f0405)
This commit is contained in:
parent
46e78aaa3a
commit
dde5fd8d38
@ -282,7 +282,7 @@ int ssh_bind_listen(ssh_bind sshbind) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (listen(fd, 10) < 0) {
|
if (listen(fd, 10) < 0) {
|
||||||
char err_msg[] = {0};
|
char err_msg[SSH_ERRNO_MSG_MAX] = {0};
|
||||||
ssh_set_error(sshbind, SSH_FATAL,
|
ssh_set_error(sshbind, SSH_FATAL,
|
||||||
"Listening to socket %d: %s",
|
"Listening to socket %d: %s",
|
||||||
fd, ssh_strerror(errno, err_msg, SSH_ERRNO_MSG_MAX));
|
fd, ssh_strerror(errno, err_msg, SSH_ERRNO_MSG_MAX));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user