projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02c7ecd
)
fix https://github.com/collectd/collectd/issues/3232
author
Fᴀʙɪᴇɴ Wᴇʀɴʟɪ
<faxmodem@collectd.org>
Mon, 29 Jul 2019 07:54:27 +0000
(09:54 +0200)
committer
Zebity Spring
<zebity@yahoo.com>
Wed, 18 Sep 2019 11:10:17 +0000
(21:10 +1000)
Change-Id: Idab2c4ffa242a73b651f1b056f85f905e356c5ac
src/utils/common/common.c
patch
|
blob
|
history
diff --git
a/src/utils/common/common.c
b/src/utils/common/common.c
index
2d961d4
..
6a0ac28
100644
(file)
--- a/
src/utils/common/common.c
+++ b/
src/utils/common/common.c
@@
-99,10
+99,7
@@
int ssnprintf(char *str, size_t sz, const char *format, ...) {
va_end(ap);
- if (ret < 0) {
- return ret;
- }
- return (size_t)ret >= sz;
+ return ret;
} /* int ssnprintf */
char *ssnprintf_alloc(char const *format, ...) /* {{{ */