btrfs: fix btrfs containers

Closes #2612. Closes #2655. Fixes: 9de31d5a ("tree-wide: s/strncpy()/strlcpy()/g") Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent ef59d326
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment