From 591342826a8566c3a5426e16d63afb96f0d6e097 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 8a8ba470..b1c68ec0 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;