When changing an oper's host, be sure that the mode value has enough room to hold +ah too.

This commit is contained in:
JD Horelick 2011-01-26 16:45:41 -05:00
parent 76db5f7dd4
commit 696c935a4c
1 changed files with 1 additions and 1 deletions

View File

@ -1506,7 +1506,7 @@ change_nick_user_host(struct Client *target_p, const char *nick, const char *use
int changed = irccmp(target_p->name, nick);
int changed_case = strcmp(target_p->name, nick);
int do_qjm = irccmp(target_p->username, user) || (irccmp(target_p->host, host) && ConfigChannel.cycle_host_change);
char mode[10], modeval[NICKLEN * 2 + 2], reason[256], *mptr;
char mode[10], modeval[NICKLEN * 4 + 4], reason[256], *mptr;
va_list ap;
modeval[0] = '\0';