summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-06 00:43:10 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-06 00:43:10 +0000
commit57bbced211229e11d10bf334007df41f53f90df1 (patch)
tree47a1fe0cb21973330140ad776dd3312bb46eeb92 /src/mode.cpp
parent9c9a0e768f3788c97651f05deda76b2cd7d81418 (diff)
Removed another strlcpy -- a lot of copying stuff that doesnt need to be copied if we're careful.
Obviously in the past, we werent so careful and mucked up/polluted params as we dealt with them! :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3477 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 08197da31..f91e579a8 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -542,9 +542,7 @@ void ModeParser::ProcessModes(char **parameters,userrec* user,chanrec *chan,int
return;
}
- char modelist[MAXBUF];
char outlist[MAXBUF];
- char outstr[MAXBUF];
char outpars[32][MAXBUF];
int param = 2;
int pc = 0;
@@ -569,7 +567,7 @@ void ModeParser::ProcessModes(char **parameters,userrec* user,chanrec *chan,int
log(DEBUG,"process_modes: start: parameters=%d",pcnt);
- strlcpy(modelist,parameters[1],MAXBUF); /* mode list, e.g. +oo-o *
+ char* modelist = parameters[1]; /* mode list, e.g. +oo-o *
* parameters[2] onwards are parameters for
* modes that require them :) */
*outlist = *modelist;
@@ -1113,7 +1111,6 @@ void ModeParser::ProcessModes(char **parameters,userrec* user,chanrec *chan,int
/* The mode change must be at least two characters long (+ or - and at least one mode) */
if (((*outl == '+') || (*outl == '-')) && *(outl+1))
{
- //strlcpy(outstr,outl,MAXBUF);
for (ptr = 0; ptr < pc; ptr++)
{
charlcat(outl,' ',MAXBUF);