From b726f19b9a7c142ba49878e913bb7cc501fb2137 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Fri, 3 Sep 2021 12:57:07 +0200 Subject: [PATCH] commands_utils: fix integer comparisons Signed-off-by: Christian Brauner --- src/lxc/commands_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/commands_utils.c b/src/lxc/commands_utils.c index 6a62d2fcb..8f77880e6 100644 --- a/src/lxc/commands_utils.c +++ b/src/lxc/commands_utils.c @@ -130,7 +130,7 @@ int lxc_make_abstract_socket_name(char *path, size_t pathlen, * ret >= len. This means lxcpath and name are too long. We need to * hash both. */ - if (ret >= len) { + if ((size_t)ret >= len) { tmplen = strlen(name) + strlen(lxcpath) + 2; tmppath = must_realloc(NULL, tmplen); ret = strnprintf(tmppath, tmplen, "%s/%s", lxcpath, name); -- 2.47.2