From ebd35496e2b1844c0340e7a5c9525457e7c73a54 Mon Sep 17 00:00:00 2001 From: ru Date: Thu, 13 Jan 2000 12:59:58 +0000 Subject: [PATCH] Fix page fault in -vv mode. PR: 16098 Submitted by: Alan.Judge@indigo.ie Reviewed by: ru --- usr.sbin/syslogd/syslogd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 7378f864a9f0..fb6094ea57e6 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -828,13 +828,13 @@ fprintlog(f, flags, msg) if (LogFacPri > 1) { CODE *c; - for (c = facilitynames; c; c++) { + for (c = facilitynames; c->c_name; c++) { if (c->c_val == fac) { f_s = c->c_name; break; } } - for (c = prioritynames; c; c++) { + for (c = prioritynames; c->c_name; c++) { if (c->c_val == pri) { p_s = c->c_name; break;