aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-22 17:48:41 +0200
committerMattias Andrée <maandree@kth.se>2016-07-22 17:48:41 +0200
commit016d65c450cac4717e264b539fb6e09204f999be (patch)
treec94cec94c604f11867787bb5e10dbca07d97ed52 /src
parentFix libcoopgamma_get_methods (diff)
downloadlibcoopgamma-016d65c450cac4717e264b539fb6e09204f999be.tar.gz
libcoopgamma-016d65c450cac4717e264b539fb6e09204f999be.tar.bz2
libcoopgamma-016d65c450cac4717e264b539fb6e09204f999be.tar.xz
Fix inequality check
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/libcoopgamma.c2
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;