diff --git a/lib/activate/fs.c b/lib/activate/fs.c index eeb6c11ef..5935391ce 100644 --- a/lib/activate/fs.c +++ b/lib/activate/fs.c @@ -313,7 +313,7 @@ struct fs_op_parms { char *lv_name; char *dev; char *old_lv_name; - char names[0]; + char names[]; }; static void _store_str(char **pos, char **ptr, const char *str) diff --git a/libdm/libdm-common.c b/libdm/libdm-common.c index 906922426..b512efd76 100644 --- a/libdm/libdm-common.c +++ b/libdm/libdm-common.c @@ -1443,7 +1443,7 @@ struct node_op_parms { char *old_name; int warn_if_udev_failed; unsigned rely_on_udev; - char names[0]; + char names[]; }; static void _store_str(char **pos, char **ptr, const char *str)