diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-01-07 05:57:55 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2007-01-07 05:57:55 +0800 |
commit | b2379a3e973c955c8779f854532b1de1358fa17a (patch) | |
tree | ffffe56950e3f9f9943063e2e124f41f0ac07f02 /mbbsd | |
parent | 955bf38c3b57fb2c3b1be5c9392beb7128668956 (diff) | |
download | pttbbs-b2379a3e973c955c8779f854532b1de1358fa17a.tar pttbbs-b2379a3e973c955c8779f854532b1de1358fa17a.tar.gz pttbbs-b2379a3e973c955c8779f854532b1de1358fa17a.tar.bz2 pttbbs-b2379a3e973c955c8779f854532b1de1358fa17a.tar.lz pttbbs-b2379a3e973c955c8779f854532b1de1358fa17a.tar.xz pttbbs-b2379a3e973c955c8779f854532b1de1358fa17a.tar.zst pttbbs-b2379a3e973c955c8779f854532b1de1358fa17a.zip |
fix a typo in delete_allpost
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3468 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/bbs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mbbsd/bbs.c b/mbbsd/bbs.c index 2c7f7f98..88d05957 100644 --- a/mbbsd/bbs.c +++ b/mbbsd/bbs.c @@ -576,14 +576,14 @@ deleteCrossPost(fileheader_t *fh, char *bname) { if(!fh || !fh->filename[0]) return; - if(!strcmp(currboard, ALLPOST) || !strcmp(currboard, "NEWIDPOST") || - !strcmp(currboard, ALLHIDPOST) || !strcmp(currboard, "UnAnonymous")) + if(!strcmp(bname, ALLPOST) || !strcmp(bname, "NEWIDPOST") || + !strcmp(bname, ALLHIDPOST) || !strcmp(bname, "UnAnonymous")) { - char bname[TTLEN + 1], *po = strrchr(fh->title, '.'); + char xbname[TTLEN + 1], *po = strrchr(fh->title, '.'); if(!po) return; - sprintf(bname, "%.*s", (int) strlen(po)-3, po+1); - do_deleteCrossPost(fh, bname); + sprintf(xbname, "%.*s", (int) strlen(po)-3, po+1); + do_deleteCrossPost(fh, xbname); } else { |