projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9ea746
)
libcollectclient: snprintf already NUL-terminates
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 2 Jul 2017 19:50:48 +0000
(21:50 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sun, 2 Jul 2017 19:50:48 +0000
(21:50 +0200)
src/libcollectdclient/client.c
patch
|
blob
|
history
diff --git
a/src/libcollectdclient/client.c
b/src/libcollectdclient/client.c
index
c3cd414
..
51a4ab2
100644
(file)
--- 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)
/*