Avoid hardcoding the number of shared{} flags another time.

This commit is contained in:
Jilles Tjoelker 2008-09-09 18:42:59 +02:00
parent 7d91f0da00
commit 591342826a

View 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;