summaryrefslogtreecommitdiff
path: root/btrfs-vol.c
diff options
context:
space:
mode:
Diffstat (limited to 'btrfs-vol.c')
-rw-r--r--btrfs-vol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/btrfs-vol.c b/btrfs-vol.c
index ad824bd8..3cc1c327 100644
--- a/btrfs-vol.c
+++ b/btrfs-vol.c
@@ -159,7 +159,7 @@ int main(int ac, char **av)
}
fd = dirfd(dirstream);
if (device)
- strcpy(args.name, device);
+ strncpy_null(args.name, device);
else
args.name[0] = '\0';