summaryrefslogtreecommitdiff
path: root/src/mode.cpp
diff options
context:
space:
mode:
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);