From: Fᴀʙɪᴇɴ Wᴇʀɴʟɪ Date: Mon, 29 Jul 2019 07:54:27 +0000 (+0200) Subject: fix https://github.com/collectd/collectd/issues/3232 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=8cae217ea6c6afc0a0eb6e4348b75293572109b5;p=collectd.git fix https://github.com/collectd/collectd/issues/3232 Change-Id: Idab2c4ffa242a73b651f1b056f85f905e356c5ac --- diff --git a/src/utils/common/common.c b/src/utils/common/common.c index 2d961d43..6a0ac28f 100644 --- 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, ...) /* {{{ */