aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/gameproc.c
diff options
context:
space:
mode:
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);