Skip to content
Snippets Groups Projects
  1. Aug 11, 2018
    • Martine Lenders's avatar
      Merge pull request #9765 from gebart/pr/sprintf-len · 6b0c34fa
      Martine Lenders authored
      tests/gnrc_netif: Fix -Wformat-overflow
      Unverified
      6b0c34fa
    • Joakim Nohlgård's avatar
      tests/gnrc_netif: Fix -Wformat-overflow · 556d06d3
      Joakim Nohlgård authored
      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);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      556d06d3
  2. Aug 10, 2018
  3. Aug 09, 2018
  4. Aug 08, 2018
  5. Aug 07, 2018
Loading