mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-13 04:29:03 -04:00
Fix crashbug, copying MAXLEN into a MAXGECOS+1 field != cunning
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3146 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
0291b2f2ed
commit
775d36dc9e
@ -214,7 +214,7 @@ void ChangeName(userrec* user, const char* gecos)
|
||||
return;
|
||||
FOREACH_MOD(I_OnChangeName,OnChangeName(user,gecos));
|
||||
}
|
||||
strlcpy(user->fullname,gecos,MAXBUF);
|
||||
strlcpy(user->fullname,gecos,MAXGECOS+1);
|
||||
}
|
||||
|
||||
void ChangeDisplayedHost(userrec* user, const char* host)
|
||||
|
Loading…
x
Reference in New Issue
Block a user