From 280a35717bbb6c6f0ba5e97bf48f5e8b9a0d98a5 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 2 May 2012 20:07:59 +0200 Subject: [PATCH] log.c: len is always positive, remove useless check (Thanks Marcus) --- src/log.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/log.c b/src/log.c index 768ce92b..92e8f57c 100644 --- a/src/log.c +++ b/src/log.c @@ -210,11 +210,6 @@ static void vlog(const bool print, const char *fmt, va_list args) { vprintf(fmt, args); } else { len += vsnprintf(message + len, sizeof(message) - len, fmt, args); - if (len < 0 ) { - fprintf(stderr, "BUG: something is overflowing here. Dropping the log entry\n"); - return; - } - if (len >= sizeof(message)) { fprintf(stderr, "BUG: single log message > 4k\n"); } -- 2.39.5