From: Christian Brauner Date: Fri, 3 Sep 2021 08:49:34 +0000 (+0200) Subject: confile_utils: fix integer comparisons X-Git-Tag: lxc-5.0.0~92^2~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c7c4a01ab20e7031e46f29a7a699064fd6f67b5;p=thirdparty%2Flxc.git confile_utils: fix integer comparisons Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile_utils.c b/src/lxc/confile_utils.c index 77627513c..07aabd2de 100644 --- a/src/lxc/confile_utils.c +++ b/src/lxc/confile_utils.c @@ -799,7 +799,7 @@ int lxc_get_conf_str(char *retv, int inlen, const char *value) return 0; value_len = strlen(value); - if (retv && inlen >= value_len + 1) + if (retv && (size_t)inlen >= value_len + 1) memcpy(retv, value, value_len + 1); return value_len;