aboutsummaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-05 20:45:28 +0000
committerOmar Polo <op@omarpolo.com>2023-06-05 20:45:28 +0000
commit114e9a4206567c38ad98fd24c627d08d17f89d7d (patch)
tree6661813d66944371bf17832b5957c8be0803463b /log.c
parent0ac785a6fa007acdc8ecb4f697981c574ab1b710 (diff)
fix off-by-one in recent fatal change
Diffstat (limited to 'log.c')
-rw-r--r--log.c2
1 files changed, 1 insertions, 1 deletions
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 */