From 3294ada0562f8b598104ed1df0a382fb2d1f195b Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sat, 28 Aug 2021 16:05:34 -0400 Subject: Use CapBits as length of Filters This should hopefully prevent accidentally using CapSomething rather than CapSomethingBit as an index in the future. --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client.c') diff --git a/client.c b/client.c index ed2e0d3..29546f1 100644 --- a/client.c +++ b/client.c @@ -558,7 +558,7 @@ static const char *filterUserhostInNames(const char *line) { ); } -static Filter *Filters[] = { +static Filter *Filters[CapBits] = { [CapAccountNotifyBit] = filterAccountNotify, [CapAwayNotifyBit] = filterAwayNotify, [CapBatchBit] = filterBatch, -- cgit 1.4.1