summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/bbs.c10
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
{