From 57bbced211229e11d10bf334007df41f53f90df1 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 6 Mar 2006 00:43:10 +0000 Subject: 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 --- src/mode.cpp | 5 +---- src/svn-rev.sh | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'src') 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); diff --git a/src/svn-rev.sh b/src/svn-rev.sh index 546185c48..395b2b3da 100755 --- a/src/svn-rev.sh +++ b/src/svn-rev.sh @@ -1 +1 @@ -echo 3474 +echo 3476 -- cgit v1.2.3