fix off-by-one in recent fatal change

This commit is contained in:
Omar Polo 2023-06-05 20:45:28 +00:00
parent 0ac785a6fa
commit 114e9a4206
1 changed files with 1 additions and 1 deletions

2
log.c
View File

@ -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 */