aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/gameproc.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-10 01:31:09 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-10 01:31:09 +0100
commit9aabcc4bf2bf8d66a50c6a934f743c5dede3fd43 (patch)
treeb687361165ea191718842e12f53630b0d7bd73c1 /FICS/gameproc.c
parente49c6b0d673fec46519e3c6fb4150480026f7025 (diff)
strdup() -> xstrdup()
Diffstat (limited to 'FICS/gameproc.c')
-rw-r--r--FICS/gameproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/FICS/gameproc.c b/FICS/gameproc.c
index cf07200..c142386 100644
--- a/FICS/gameproc.c
+++ b/FICS/gameproc.c
@@ -1199,7 +1199,7 @@ PUBLIC int com_switch(int p, param_list param)
garray[g].white = garray[g].black;
garray[g].black = tmp;
parray[p].side = (parray[p].side == WHITE) ? BLACK : WHITE;
- strTmp = strdup(garray[g].white_name);
+ strTmp = xstrdup(garray[g].white_name);
strcpy(garray[g].white_name, garray[g].black_name);
strcpy(garray[g].black_name, strTmp);
strfree(strTmp);