From 114e9a4206567c38ad98fd24c627d08d17f89d7d Mon Sep 17 00:00:00 2001 From: Omar Polo Date: Mon, 5 Jun 2023 20:45:28 +0000 Subject: [PATCH] fix off-by-one in recent fatal change --- log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log.c b/log.c index 2b84224..a6d21d5 100644 --- a/log.c +++ b/log.c @@ -107,7 +107,7 @@ fatal_impl(int use_err, const char *fmt, va_list ap) } else str = NULL, r = 0; - send_log(IMSG_LOG, LOG_CRIT, str, r); + send_log(IMSG_LOG, LOG_CRIT, str, r + 1); free(str); /* wait for the logger process to shut down */