From 72e282471cfcf0a46f932a684c519355dc11f9c7 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Tue, 7 Feb 2017 00:42:55 +0000 Subject: [PATCH] Use a flexible array for TypeNames instead of hardcoding the array length MFC after: 1 week Sponsored by: Dell EMC Isilon --- usr.sbin/syslogd/syslogd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index 4db69b02ab37..0b8c9591d646 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -287,7 +287,7 @@ static int repeatinterval[] = { 30, 120, 600 }; /* # of secs before flush */ #define F_WALL 6 /* everyone logged on */ #define F_PIPE 7 /* pipe to program */ -static const char *TypeNames[8] = { +static const char *TypeNames[] = { "UNUSED", "FILE", "TTY", "CONSOLE", "FORW", "USERS", "WALL", "PIPE" };