summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-08-28 16:05:34 -0400
committerJune McEnroe <june@causal.agency>2021-08-28 16:05:34 -0400
commit3294ada0562f8b598104ed1df0a382fb2d1f195b (patch)
treed0ee8109b0264af2b846a15f5592c2812aaf6812
parentDon't create new tls_server(3), just reconfigure (diff)
downloadpounce-3294ada0562f8b598104ed1df0a382fb2d1f195b.tar.gz
pounce-3294ada0562f8b598104ed1df0a382fb2d1f195b.zip
Use CapBits as length of Filters
This should hopefully prevent accidentally using CapSomething rather
than CapSomethingBit as an index in the future.
-rw-r--r--client.c2
1 files changed, 1 insertions, 1 deletions
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,