From b2379a3e973c955c8779f854532b1de1358fa17a Mon Sep 17 00:00:00 2001 From: ptt Date: Sat, 6 Jan 2007 21:57:55 +0000 Subject: fix a typo in delete_allpost git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3468 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/bbs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mbbsd') 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 { -- cgit v1.2.3