mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-13 16:20:24 +00:00
commands_utils: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
5e0e7af42a
commit
60a8b99b89
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user