From: Ruben Kerkhof Date: Sun, 2 Jul 2017 19:50:48 +0000 (+0200) Subject: libcollectclient: snprintf already NUL-terminates X-Git-Tag: collectd-5.8.0~118^2~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5203a7f54b80593fc2f78c7fe407ca1e7b969984;p=collectd.git libcollectclient: snprintf already NUL-terminates --- diff --git a/src/libcollectdclient/client.c b/src/libcollectdclient/client.c index c3cd414f..51a4ab23 100644 --- a/src/libcollectdclient/client.c +++ b/src/libcollectdclient/client.c @@ -92,7 +92,6 @@ #define LCC_SET_ERRSTR(c, ...) \ do { \ snprintf((c)->errbuf, sizeof((c)->errbuf), __VA_ARGS__); \ - (c)->errbuf[sizeof((c)->errbuf) - 1] = 0; \ } while (0) /*