diff options
author | Mattias Andrée <maandree@kth.se> | 2016-07-22 17:48:41 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-07-22 17:48:41 +0200 |
commit | 016d65c450cac4717e264b539fb6e09204f999be (patch) | |
tree | c94cec94c604f11867787bb5e10dbca07d97ed52 | |
parent | Fix libcoopgamma_get_methods (diff) | |
download | libcoopgamma-016d65c450cac4717e264b539fb6e09204f999be.tar.gz libcoopgamma-016d65c450cac4717e264b539fb6e09204f999be.tar.bz2 libcoopgamma-016d65c450cac4717e264b539fb6e09204f999be.tar.xz |
Fix inequality check
Signed-off-by: Mattias Andrée <maandree@kth.se>
-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; |