Merge pull request #9765 from gebart/pr/sprintf-len
tests/gnrc_netif: Fix -Wformat-overflow
This commit is contained in:
commit
6b0c34fa6f
@ -1043,7 +1043,7 @@ static void test_netif_iter(void)
|
|||||||
|
|
||||||
static void test_netif_get_name(void)
|
static void test_netif_get_name(void)
|
||||||
{
|
{
|
||||||
char exp_name[NETIF_NAMELENMAX];
|
char exp_name[NETIF_NAMELENMAX + 1];
|
||||||
char name[NETIF_NAMELENMAX];
|
char name[NETIF_NAMELENMAX];
|
||||||
int res;
|
int res;
|
||||||
netif_t netif = netif_iter(NETIF_INVALID);
|
netif_t netif = netif_iter(NETIF_INVALID);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user