summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-09-11 20:29:22 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-09-11 20:29:22 +0000
commit236d23e6540b437a77546410c8740d337e56db02 (patch)
treee72eefa354f9a38fd469dec734d5bb6afcd948d3 /src/mode.cpp
parente7f0a0fb7edf96abbddf72eadb490b5eb22447ec (diff)
Changes for security based on RATS analysis
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@856 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 68a46798b..9b7d29e94 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -1186,7 +1186,7 @@ void handle_mode(char **parameters, int pcnt, userrec *user)
{
moo[0] = dmodes[q];
moo[1] = '\0';
- strcat(temp,moo);
+ strlcat(temp,moo,MAXBUF);
}
}
strlcpy(dmodes,temp,MAXBUF);
@@ -1409,7 +1409,7 @@ void server_mode(char **parameters, int pcnt, userrec *user)
{
moo[0] = dmodes[q];
moo[1] = '\0';
- strcat(temp,moo);
+ strlcat(temp,moo,MAXBUF);
}
}
strlcpy(dmodes,temp,MAXBUF);
@@ -1595,10 +1595,10 @@ void merge_mode(char **parameters, int pcnt)
{
moo[0] = dmodes[q];
moo[1] = '\0';
- strcat(temp,moo);
+ strlcat(temp,moo,MAXBUF);
}
}
- strcpy(dmodes,temp);
+ strlcpy(dmodes,temp,MAXBUF);
}
}
}
@@ -1773,7 +1773,7 @@ void merge_mode2(char **parameters, int pcnt, userrec* user)
{
moo[0] = dmodes[q];
moo[1] = '\0';
- strcat(temp,moo);
+ strlcat(temp,moo,MAXBUF);
}
}
strlcpy(dmodes,temp,MAXBUF);