From cc0d18857397a5e0f8f0e1c93077bb93b6a5b71c Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 21 Jan 2015 02:14:38 +1100 Subject: [PATCH] Fix impossible len >= UNIX_PATH_MAX warning --- src/libckpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libckpool.c b/src/libckpool.c index 757c7414..8c367bbb 100644 --- a/src/libckpool.c +++ b/src/libckpool.c @@ -726,7 +726,7 @@ int _open_unix_server(const char *server_path, const char *file, const char *fun if (likely(server_path)) { len = strlen(server_path); - if (unlikely(len < 1 || len > UNIX_PATH_MAX)) { + if (unlikely(len < 1 || len >= UNIX_PATH_MAX)) { LOGERR("Invalid server path length %d in open_unix_server", len); goto out; }