summaryrefslogtreecommitdiffstats
path: root/mbbsd/vote.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-19 21:00:13 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-19 21:00:13 +0800
commiteadc8ca4ec8a2211cdb07386bfb133ab972ed874 (patch)
tree5e4bce7a7c97d9ddfa60a2e04d991965dfe391d1 /mbbsd/vote.c
parentbac35869a07ddf3307643c0a60399e2bdb5b98ea (diff)
downloadpttbbs-eadc8ca4ec8a2211cdb07386bfb133ab972ed874.tar
pttbbs-eadc8ca4ec8a2211cdb07386bfb133ab972ed874.tar.gz
pttbbs-eadc8ca4ec8a2211cdb07386bfb133ab972ed874.tar.bz2
pttbbs-eadc8ca4ec8a2211cdb07386bfb133ab972ed874.tar.lz
pttbbs-eadc8ca4ec8a2211cdb07386bfb133ab972ed874.tar.xz
pttbbs-eadc8ca4ec8a2211cdb07386bfb133ab972ed874.tar.zst
pttbbs-eadc8ca4ec8a2211cdb07386bfb133ab972ed874.zip
less hard coded path/string.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2634 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/vote.c')
-rw-r--r--mbbsd/vote.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/vote.c b/mbbsd/vote.c
index e354f1d4..cf52228f 100644
--- a/mbbsd/vote.c
+++ b/mbbsd/vote.c
@@ -327,10 +327,10 @@ b_result_one(vote_buffer_t *vbuf, boardheader_t * fh, int ind, int *total)
b_suckinfile(frp, b_newresults);
fclose(frp);
}
- snprintf(inbuf, sizeof(inbuf), "boards/%c/%s", bname[0], bname);
+ setbpath(inbuf, bname);
vote_report(bname, b_report, inbuf);
if (!(fh->brdattr & BRD_NOCOUNT)) {
- snprintf(inbuf, sizeof(inbuf), "boards/%c/%s", 'R', "Record");
+ setbpath(inbuf, "Record");
vote_report(bname, b_report, inbuf);
}
unlink(b_report);