From 696c935a4cd23bab115eff92c834c32a48d2837c Mon Sep 17 00:00:00 2001 From: JD Horelick Date: Wed, 26 Jan 2011 16:45:41 -0500 Subject: [PATCH] When changing an oper's host, be sure that the mode value has enough room to hold +ah too. --- src/s_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s_user.c b/src/s_user.c index 1fc9661..3e605e5 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -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';