From 8cae217ea6c6afc0a0eb6e4348b75293572109b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?F=E1=B4=80=CA=99=C9=AA=E1=B4=87=C9=B4=20W=E1=B4=87=CA=80?= =?utf8?q?=C9=B4=CA=9F=C9=AA?= Date: Mon, 29 Jul 2019 09:54:27 +0200 Subject: [PATCH] fix https://github.com/collectd/collectd/issues/3232 Change-Id: Idab2c4ffa242a73b651f1b056f85f905e356c5ac --- src/utils/common/common.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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, ...) /* {{{ */ -- 2.11.0