summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-09 10:19:18 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-09 10:19:18 +0000
commit775d36dc9ed2359c6c06d4d32604fad63e7b451a (patch)
treeec4b61801f6fd77b677e8c54976c6747f786e83e
parent0291b2f2edad6d62f4e0c08a804a2276959e6e7b (diff)
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
-rw-r--r--src/message.cpp2
1 files changed, 1 insertions, 1 deletions
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)