write_sensu: use sstrncpy
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 13 May 2018 15:06:54 +0000 (17:06 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 13 May 2018 15:06:54 +0000 (17:06 +0200)
Fixes:
  CC       src/write_sensu.lo
src/write_sensu.c: In function ‘replace_str’:
src/write_sensu.c:630:3: warning: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
   strncpy(r, p, strlen(p));
   ^~~~~~~~~~~~~~~~~~~~~~~~
  CCLD     write_sensu.la


No differences found