summaryrefslogtreecommitdiffstats
path: root/mbbsd/talk.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r--mbbsd/talk.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index c54291a2..8052ae5a 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -993,9 +993,8 @@ do_talk(int fd)
ptime = localtime(&now);
- sethomepath(fpath, cuser->userid);
- strlcpy(fpath, tempnam(fpath, "talk_"), sizeof(fpath));
- flog = fopen(fpath, "w");
+ setuserfile(fpath, "talk_XXXXXX");
+ flog = fdopen(mkstemp(fpath), "w");
setuserfile(genbuf, fn_talklog);