From: David Sterba Date: Mon, 30 Jan 2017 13:11:19 +0000 (+0100) Subject: btrfs-progs: convert: use fixed lenght array for source fs name X-Git-Tag: upstream/4.16.1~818 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b74f2fbe308cc2c57fc1199395e06e1932ed9af;p=platform%2Fupstream%2Fbtrfs-progs.git btrfs-progs: convert: use fixed lenght array for source fs name Signed-off-by: David Sterba --- 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,