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:
om 2006-02-09 10:19:18 +00:00
parent 0291b2f2ed
commit 775d36dc9e

View File

@ -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)