mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-02 13:01:43 +00:00
confile_utils: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
5eac34d508
commit
6c7c4a01ab
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user