summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/bbs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c
index df2d1161..5166d83d 100644
--- a/mbbsd/bbs.c
+++ b/mbbsd/bbs.c
@@ -433,12 +433,13 @@ void
do_crosspost(char *brd, fileheader_t *postfile, const char *fpath)
{
char genbuf[200];
+ int len = 42-strlen(currboard);
fileheader_t fh;
setbpath(genbuf, brd);
stampfile(genbuf, &fh);
strcpy(fh.owner, postfile->owner);
strcpy(fh.date, postfile->date);
- sprintf(fh.title,"%-30.30s[%s]", postfile->title, currboard);
+ sprintf(fh.title,"%-*.*s.%sĒŠ", len, len, postfile->title, currboard);
unlink(genbuf);
Link(fpath, genbuf);
postfile->filemode = FILE_LOCAL;