summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mode.cpp5
-rwxr-xr-xsrc/svn-rev.sh2
2 files changed, 2 insertions, 5 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);
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