From 2710404505fca64b2dadf1ed1abbb37937ac986c Mon Sep 17 00:00:00 2001 From: bluhm Date: Tue, 19 Aug 2014 00:24:00 +0000 Subject: [PATCH] Fix trailing white spaces. OK sthen@ --- usr.sbin/syslogd/syslogd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 9d50ff51dee..fa6f10b25de 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: syslogd.c,v 1.111 2014/07/14 04:02:33 deraadt Exp $ */ +/* $OpenBSD: syslogd.c,v 1.112 2014/08/19 00:24:00 bluhm Exp $ */ /* * Copyright (c) 1983, 1988, 1993, 1994 @@ -1014,7 +1014,7 @@ fprintlog(struct filed *f, int flags, char *msg) case F_MEMBUF: dprintf("\n"); snprintf(line, sizeof(line), "%.15s %s %s", - (char *)iov[0].iov_base, (char *)iov[2].iov_base, + (char *)iov[0].iov_base, (char *)iov[2].iov_base, (char *)iov[4].iov_base); if (ringbuf_append_line(f->f_un.f_mb.f_rb, line) == 1) f->f_un.f_mb.f_overflow = 1; @@ -1538,9 +1538,9 @@ cfline(char *line, char *prog) logerror(ebuf); break; } - addr_len = priv_gethostserv(f->f_un.f_forw.f_hname, - cp == NULL ? "syslog" : cp, - (struct sockaddr*)&f->f_un.f_forw.f_addr, + addr_len = priv_gethostserv(f->f_un.f_forw.f_hname, + cp == NULL ? "syslog" : cp, + (struct sockaddr*)&f->f_un.f_forw.f_addr, sizeof(f->f_un.f_forw.f_addr)); if (addr_len < 1) { snprintf(ebuf, sizeof(ebuf), "bad hostname \"%s\"", p); -- 2.20.1