summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/bbs.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index d3adb195..9c51281f 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -596,13 +596,15 @@ do_crosspost(const char *brd, fileheader_t *postfile, const char *fpath,
if(!strncasecmp(postfile->title, str_reply, 3))
len=len+4;
- setbpath(genbuf, brd);
memcpy(&fh, postfile, sizeof(fileheader_t));
if(isstamp)
- stampfile(genbuf, &fh);
+ {
+ setbpath(genbuf, brd);
+ stampfile(genbuf, &fh);
+ }
else
- strcat(genbuf, postfile->filename);
+ setbfile(genbuf, brd, postfile->filename);
if(!strcmp(brd, "UnAnonymous"))
strcpy(fh.owner, cuser.userid);