From 3c80e9d634777b98f91ab22120066fdf965ffe6e Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Tue, 9 Sep 2008 18:42:59 +0200 Subject: [PATCH] Avoid hardcoding the number of shared{} flags another time. --- modules/m_stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/m_stats.c b/modules/m_stats.c index 8a8ba47..b1c68ec 100644 --- a/modules/m_stats.c +++ b/modules/m_stats.c @@ -961,7 +961,7 @@ stats_shared (struct Client *source_p) { struct remote_conf *shared_p; rb_dlink_node *ptr; - char buf[15]; + char buf[sizeof(shared_flagtable)/sizeof(shared_flagtable[0])]; char *p; int i;