From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Vladislav Shpilevoy Subject: [PATCH v2 04/11] sio: make code compatible with C Date: Wed, 5 Dec 2018 00:28:51 +0300 Message-Id: In-Reply-To: References: In-Reply-To: References: To: tarantool-patches@freelists.org Cc: vdavydov.dev@gmail.com List-ID: --- src/sio.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sio.cc b/src/sio.cc index a13e7d9de..d0ae75dbc 100644 --- a/src/sio.cc +++ b/src/sio.cc @@ -355,7 +355,7 @@ sio_strfaddr(struct sockaddr *addr, socklen_t addrlen) static __thread char name[NI_MAXHOST + _POSIX_PATH_MAX + 2]; switch(addr->sa_family) { case AF_UNIX: - if (addrlen >= sizeof(sockaddr_un)) { + if (addrlen >= sizeof(struct sockaddr_un)) { snprintf(name, sizeof(name), "unix/:%s", ((struct sockaddr_un *)addr)->sun_path); } else { -- 2.17.2 (Apple Git-113)