From 4f24bce3391969fced4695dcc67191b1c8cdcd46 Mon Sep 17 00:00:00 2001 From: "Edward K. McGuire" Date: Fri, 13 May 2022 15:14:09 -0500 Subject: [PATCH] Don't skip the field in the call to wallmsg() This is redundant and causes message truncation. The field is skipped within wallmsg() itself. Signed-off-by: Edward K. McGuire Signed-off-by: Joachim Wiberg --- src/syslogd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/syslogd.c b/src/syslogd.c index 2426fa1..8f51371 100644 --- a/src/syslogd.c +++ b/src/syslogd.c @@ -1857,7 +1857,7 @@ void fprintlog_write(struct filed *f, struct iovec *iov, int iovcnt, int flags) f->f_time = timer_now(); logit("\n"); pushiov(iov, iovcnt, "\r\n"); - wallmsg(f, &iov[1], iovcnt - 1); + wallmsg(f, &iov[0], iovcnt); break; } /* switch */