From 15c588f931d3b30344352a49d7f8df6dc5ea873c Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 9 Mar 2021 13:58:50 +0100 Subject: [PATCH] gcc: match size of holder name to direcnt d_name As d_name is defined as 256 avoid gcc warning - although in our case the used size will be much smaller. --- lib/filters/filter-mpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/filters/filter-mpath.c b/lib/filters/filter-mpath.c index 57ed79908..471f0b4b9 100644 --- a/lib/filters/filter-mpath.c +++ b/lib/filters/filter-mpath.c @@ -198,7 +198,7 @@ static int _native_dev_is_mpath_component(struct cmd_context *cmd, struct dev_fi char link_path[PATH_MAX]; /* some obscure, unpredictable sysfs path */ char holders_path[PATH_MAX]; /* e.g. "/sys/block/sda/holders/" */ char dm_dev_path[PATH_MAX]; /* e.g. "/dev/dm-1" */ - char holder_name[128] = { 0 }; /* e.g. "dm-1" */ + char holder_name[256]; /* e.g. "dm-1" */ const char *sysfs_dir = dm_sysfs_dir(); int dev_major = MAJOR(dev->dev); int dev_minor = MINOR(dev->dev);