aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/network.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-13 20:21:02 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-13 20:21:02 +0100
commit71b47d93924da64290184516cf72a60b471f3f53 (patch)
treee6c01c55eb73058a39999c41029d4ee2c1d32dcf /FICS/network.c
parent2d969e7b08481e13fdaee3e480c10e90236dc6b3 (diff)
Fixed compiler warnings
Diffstat (limited to 'FICS/network.c')
-rw-r--r--FICS/network.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/FICS/network.c b/FICS/network.c
index 2edf228..0abc264 100644
--- a/FICS/network.c
+++ b/FICS/network.c
@@ -378,7 +378,7 @@ readline2(char *com, int who)
state = 1;
} else if (*s == '\n') {
*s = '\0';
- strcpy(com, start);
+ sprintf(com, "%s", start);
if (howmany)
bcopy(s + 1, start, howmany);
con[who].state = 0;
@@ -416,7 +416,7 @@ readline2(char *com, int who)
state = 1;
else if (*s == '\n') {
*d = '\0';
- strcpy(com, start);
+ sprintf(com, "%s", start);
if (howmany)
memmove(start, s + 1, howmany);
con[who].state = 0;
@@ -454,7 +454,7 @@ readline2(char *com, int who)
if (con[who].numPending == MAX_STRING_LENGTH - 1) { // buffer full
*d = '\0';
- strcpy(com, start);
+ sprintf(com, "%s", start);
con[who].state = 0;
con[who].numPending = 0;
con[who].processed = 0;