]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
Avoid hardcoding the number of shared{} flags another time.
authorJilles Tjoelker <redacted>
Tue, 9 Sep 2008 16:42:59 +0000 (18:42 +0200)
committerJilles Tjoelker <redacted>
Tue, 9 Sep 2008 16:42:59 +0000 (18:42 +0200)
modules/m_stats.c

index 8a8ba4706a59c78a59f23a64c8a3372291dc2791..b1c68ec0a2589b6fab8b9e90f68154a4c97e3768 100644 (file)
@@ -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;