diff --git a/include/nuttx/net/netfilter/ip_tables.h b/include/nuttx/net/netfilter/ip_tables.h index 0ac092fce01..0828e36e680 100644 --- a/include/nuttx/net/netfilter/ip_tables.h +++ b/include/nuttx/net/netfilter/ip_tables.h @@ -117,7 +117,7 @@ struct ipt_entry struct xt_counters counters; /* Packet and byte counters. */ - unsigned char elems[0]; /* The matches (if any), then the target. */ + unsigned char elems[1]; /* The matches (if any), then the target. */ }; /* Note 1: How entries are organized in following interface arguments. diff --git a/include/nuttx/net/netfilter/x_tables.h b/include/nuttx/net/netfilter/x_tables.h index 721dcaa24a8..d180c18ea80 100644 --- a/include/nuttx/net/netfilter/x_tables.h +++ b/include/nuttx/net/netfilter/x_tables.h @@ -62,7 +62,7 @@ struct xt_entry_target uint16_t target_size; /* Total length */ } u; - unsigned char data[0]; + unsigned char data[1]; }; struct xt_standard_target