libcollectdclient: fix gcc warning
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 14 Dec 2018 16:27:44 +0000 (17:27 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Thu, 7 Feb 2019 09:58:49 +0000 (10:58 +0100)
commit28c83da870b4df4a311a5ef20a5ca37d3c84c638
treef278a5c5bd6b20a60d97f5b895671301380ff56a
parente19d1f0affb0b68e11c9ed3448b3d5a663bb0049
libcollectdclient: fix gcc warning

make[1]: Entering directory '/home/ruben/src/collectd'
  CC       src/libcollectdclient/libcollectdclient_la-network_parse.lo
In function ‘parse_string’,
    inlined from ‘parse_identifier’ at src/libcollectdclient/network_parse.c:169:7,
    inlined from ‘network_parse.constprop’ at src/libcollectdclient/network_parse.c:540:11:
src/libcollectdclient/network_parse.c:161:3: warning: ‘strncpy’ specified bound 64 equals destination size [-Wstringop-truncation]
   strncpy(out, in, out_size);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/libcollectdclient/network_parse.c