1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/gnrc_netif
Joakim Nohlgård 556d06d3bf tests/gnrc_netif: Fix -Wformat-overflow
Fixes the following error with GCC 7

main.c: In function 'test_netif_get_name':
main.c:1054:23: error: 'sprintf' may write a terminating nul past the end of the destination [-Werror=format-overflow=]
     sprintf(exp_name, "if%d", (int)netif);
                       ^~~~~~
main.c:1054:5: note: 'sprintf' output between 4 and 9 bytes into a destination of size 8
     sprintf(exp_name, "if%d", (int)netif);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2018-08-11 07:28:29 +02:00
..
tests tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
common.c sys/net/gnrc/netif: adapt to netdev with iolist 2018-03-06 14:00:31 +01:00
common.h gnrc_netif2: rename to gnrc_netif 2017-11-17 10:41:54 +01:00
main.c tests/gnrc_netif: Fix -Wformat-overflow 2018-08-11 07:28:29 +02:00
Makefile tests/gnrc_netif: enable CI tests 2018-08-07 18:05:07 +02:00