mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-03 07:23:23 +00:00
btrfs: fix btrfs containers
Closes #2612.
Closes #2655.
Fixes: 9de31d5a13
("tree-wide: s/strncpy()/strlcpy()/g")
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
56e28f9258
commit
37aa48515b
@ -366,6 +366,7 @@ int btrfs_snapshot(const char *orig, const char *new)
|
||||
goto out;
|
||||
|
||||
memset(&args, 0, sizeof(args));
|
||||
args.fd = fd;
|
||||
retlen = strlcpy(args.name, newname, BTRFS_SUBVOL_NAME_MAX);
|
||||
if (retlen >= BTRFS_SUBVOL_NAME_MAX)
|
||||
goto out;
|
||||
|
Loading…
Reference in New Issue
Block a user