use ICB_MAXGRPLEN for the lenght of the group name

This commit is contained in:
Mike Belopuhov 2015-01-18 17:58:04 +01:00
parent 0519a8785b
commit cb7c49446c

2
icb.c
View File

@ -156,7 +156,7 @@ icb_login(struct icb_session *is, char *grp, char *nick, char *client)
if (!grp || strlen(grp) == 0)
strlcpy(group, defgrp, ICB_MAXGRPLEN);
else
icb_vis(group, grp, ICB_MAXNICKLEN, VIS_SP);
icb_vis(group, grp, ICB_MAXGRPLEN, VIS_SP);
LIST_FOREACH(ig, &groups, entry) {
if (strcmp(ig->name, group) == 0)
break;