diff options
-rw-r--r-- | src/message.cpp | 2 |
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) |