Skip to content

Commit

Permalink
btrfs: fix btrfs containers
Browse files Browse the repository at this point in the history
Closes #2612.
Closes #2655.

Fixes: 9de31d5 ("tree-wide: s/strncpy()/strlcpy()/g")
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Sep 28, 2018
1 parent 56e28f9 commit 37aa485
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lxc/storage/btrfs.c
Expand Up @@ -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;
Expand Down

0 comments on commit 37aa485

Please sign in to comment.