From: Christian Brauner Date: Fri, 3 Sep 2021 10:57:07 +0000 (+0200) Subject: commands_utils: fix integer comparisons X-Git-Tag: lxc-5.0.0~92^2~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60a8b99b8971eb80f2cf3e8ca0bf423dfd0fa0cb;p=thirdparty%2Flxc.git commands_utils: fix integer comparisons Signed-off-by: Christian Brauner --- 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);