Message ID | 1383792220-24436-1-git-send-email-anand.jain@oracle.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
diff --git a/utils.c b/utils.c index 753169b..ebd10e5 100644 --- a/utils.c +++ b/utils.c @@ -1981,8 +1981,8 @@ int btrfs_scan_lblkid(int update_kernel) dev = blkid_verify(cache, dev); if (!dev) continue; - /* if we are here its definitly a btrfs disk*/ - strcpy(path, blkid_dev_devname(dev)); + /* if we are here its definitely a btrfs disk*/ + strncpy(path, blkid_dev_devname(dev), PATH_MAX); if (test_skip_this_disk(path)) continue;