diff options
Diffstat (limited to '')
-rw-r--r-- | src/libcoopgamma.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |