From 016d65c450cac4717e264b539fb6e09204f999be Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 22 Jul 2016 17:48:41 +0200 Subject: Fix inequality check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libcoopgamma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libcoopgamma.c b/src/libcoopgamma.c index 031af1a..235864a 100644 --- a/src/libcoopgamma.c +++ b/src/libcoopgamma.c @@ -1343,7 +1343,7 @@ int libcoopgamma_connect(const char* restrict method, const char* restrict site, path = libcoopgamma_get_socket_file(method, site); if (path == NULL) return -1; - if (strlen(path) <= sizeof(address.sun_path)) + if (strlen(path) >= sizeof(address.sun_path)) { free(path); errno = ENAMETOOLONG; -- cgit v1.2.3-70-g09d2