diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-22 18:36:33 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-22 18:36:33 +0000 |
commit | 03a85ddeaf120bd7234089f9f5333d7895f96deb (patch) | |
tree | c79855974065b263d6c3ce6148484735ff28044b /src/cmd_oper.cpp | |
parent | cb5bcb431dd5ded2bbc749f204878e722e480135 (diff) |
Oh yae, Oh Yae, back in old days of yore, Ye Brain doth set the nick buffer as NICKLEN+1 to ease understanding by newbs who didnt know what thou null terminator was.
And yae, at a date later hence, Ye Brain then setteth ye buffer back to NICKLEN again.
Alas, neither Ye Brain nor Ye trusty followers hath then setteth back the rest of the core to NICKLEN-1, and verily, chaos ensued. :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3286 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_oper.cpp')
-rw-r--r-- | src/cmd_oper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_oper.cpp b/src/cmd_oper.cpp index 15e0df3c4..7cbf4b79f 100644 --- a/src/cmd_oper.cpp +++ b/src/cmd_oper.cpp @@ -117,7 +117,7 @@ void cmd_oper::Handle (char **parameters, int pcnt, userrec *user) log(DEFAULT,"OPER: Failed oper attempt by %s!%s@%s: credentials valid, but oper type erroneous.",user->nick,user->ident,user->host); return; } - strlcpy(user->oper,TypeName,NICKMAX); + strlcpy(user->oper,TypeName,NICKMAX-1); found = true; fail2 = false; break; |