From 775d36dc9ed2359c6c06d4d32604fad63e7b451a Mon Sep 17 00:00:00 2001 From: om Date: Thu, 9 Feb 2006 10:19:18 +0000 Subject: 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 --- src/message.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/message.cpp b/src/message.cpp index b8351ea7e..0f49f9a0a 100644 --- a/src/message.cpp +++ b/src/message.cpp @@ -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) -- cgit v1.2.3