confile_utils: fix integer comparisons

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2021-09-03 10:49:34 +02:00
parent 5eac34d508
commit 6c7c4a01ab
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -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;