aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--FICS/command.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/FICS/command.c b/FICS/command.c
index 6a90ae6..dacd382 100644
--- a/FICS/command.c
+++ b/FICS/command.c
@@ -574,7 +574,8 @@ process_login(int p, char *loginname)
problem = 0;
if (player_read(p, loginname)) {
- strcpy(parray[p].name, loginnameii);
+ rfree(parray[p].name);
+ parray[p].name = xstrdup(loginnameii);
if (in_list(p, L_FILTER,
dotQuad(parray[p].thisHost))) {