mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +09: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 e53a2711d3)
This commit is contained in:
committed by
Andreas Schneider
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));
|
||||||
|
|||||||
Reference in New Issue
Block a user