From ccd61ebfd97fde43768497c79e3d361b484b1520 Mon Sep 17 00:00:00 2001 From: Xiao Ni Date: Tue, 22 Jun 2021 23:15:55 +0800 Subject: mdadm: Fix building errors In util.c, there is a building error: '/md/metadata_version' directive writing 20 bytes into a region of size between 0 and 255 [-Werror=format-overflow=] In mapfile.c It declares the fouth argument as 'int *' in map_update, but in mdadm.h it's previously declared as an array 'int[4]' Signed-off-by: Xiao Ni Signed-off-by: Jes Sorensen --- mapfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mapfile.c') diff --git a/mapfile.c b/mapfile.c index 8d7acb3c..6b2207dd 100644 --- a/mapfile.c +++ b/mapfile.c @@ -215,7 +215,7 @@ void map_free(struct map_ent *map) } int map_update(struct map_ent **mpp, char *devnm, char *metadata, - int *uuid, char *path) + int uuid[4], char *path) { struct map_ent *map, *mp; int rv; -- cgit v1.2.3