From d27bfc74e606290f191c04cdb4e2acc4d5e8d4a9 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 7cfd3109..8b2521de 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