From 6b74f2fbe308cc2c57fc1199395e06e1932ed9af Mon Sep 17 00:00:00 2001 From: David Sterba Date: Mon, 30 Jan 2017 14:11:19 +0100 Subject: [PATCH] btrfs-progs: convert: use fixed lenght array for source fs name Signed-off-by: David Sterba --- convert/source-fs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/convert/source-fs.h b/convert/source-fs.h index d074ead..3ee429a 100644 --- a/convert/source-fs.h +++ b/convert/source-fs.h @@ -31,8 +31,10 @@ struct task_ctx { struct btrfs_convert_context; +#define SOURCE_FS_NAME_LEN (16) + struct btrfs_convert_operations { - const char *name; + const char name[SOURCE_FS_NAME_LEN]; int (*open_fs)(struct btrfs_convert_context *cctx, const char *devname); int (*read_used_space)(struct btrfs_convert_context *cctx); int (*copy_inodes)(struct btrfs_convert_context *cctx, -- 2.7.4