mirror of
git://github.com/lxc/lxc
synced 2025-08-31 18:17:16 +00:00
commands_utils: fix integer comparisons
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user