tools/configurator: fix compile error with -O2
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 17 Jul 2020 01:56:51 +0000 (11:26 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 17 Jul 2020 01:56:51 +0000 (11:26 +0930)
commitcbc7cbf1dae1ad8c1f7f3314b9a22f75fafb48c0
treed617215180be0fd83aa04367948aa79e19575cbc
parentfc339122d69a85e5238d8bd7069d24ed4be4aed4
tools/configurator: fix compile error with -O2

In file included from /usr/include/string.h:495,
                 from configuratortest.c:2:
In function ‘strncpy’,
    inlined from ‘main’ at configuratortest.c:6:2:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: warning: ‘__builtin_strncpy’ specified bound 8 equals destination size [-Wstringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools/configurator/configurator.c