diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-01-31 03:14:05 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-01-31 03:14:05 +0800 |
commit | 95eaac992e80f2a13a6f69224389b7ea6dd986eb (patch) | |
tree | daa42c1d4a176c580ad3017ce677834c142c5649 /mbbsd | |
parent | 822443e8b01081cbed33989450e86f38411f62a7 (diff) | |
download | pttbbs-95eaac992e80f2a13a6f69224389b7ea6dd986eb.tar pttbbs-95eaac992e80f2a13a6f69224389b7ea6dd986eb.tar.gz pttbbs-95eaac992e80f2a13a6f69224389b7ea6dd986eb.tar.bz2 pttbbs-95eaac992e80f2a13a6f69224389b7ea6dd986eb.tar.lz pttbbs-95eaac992e80f2a13a6f69224389b7ea6dd986eb.tar.xz pttbbs-95eaac992e80f2a13a6f69224389b7ea6dd986eb.tar.zst pttbbs-95eaac992e80f2a13a6f69224389b7ea6dd986eb.zip |
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1500 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/bbs.c | 3 |
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; |