projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21c84ce
)
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
Matthias Runge
<mrunge@redhat.com>
Mon, 16 Sep 2019 17:56:49 +0000
(19:56 +0200)
Change-Id: Idab2c4ffa242a73b651f1b056f85f905e356c5ac
(cherry picked from commit
d27bfc74e606290f191c04cdb4e2acc4d5e8d4a9
)
src/utils/common/common.c
patch
|
blob
|
history
diff --git
a/src/utils/common/common.c
b/src/utils/common/common.c
index
7cfd310
..
8b2521d
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, ...) /* {{{ */