aboutsummaryrefslogtreecommitdiffstats
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-06-08 22:00:12 +0000
committerGravatar brain2006-06-08 22:00:12 +0000
commit075e89d6be2ceee526e0430f3fdd9ccc5ac8c284 (patch)
treec80ebc9539594c741ede2009e6ccbc28df266a33 /src/helperfuncs.cpp
parentFix for segfault if a user quits before their ident is complete, due to sessi... (diff)
Fix for mode string getting cut, breaks on some +L
git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@3994 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index bb148cccb..529092047 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -1309,7 +1309,7 @@ char* chanmodes(chanrec *chan, bool showkey)
/* Null terminate scratch */
*offset = '\0';
- strlcat(scratch,sparam,MAXMODES);
+ strlcat(scratch,sparam,MAXBUF);
return scratch;
}