summaryrefslogtreecommitdiffstats
path: root/mbbsd/vote.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-11 14:16:49 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-12-11 14:16:49 +0800
commit5c3bb0ce3bcbd99430b25b4d7ecfb474d4814947 (patch)
tree3b43100a6e3353744bf56a1e3497fdd53105ff18 /mbbsd/vote.c
parent0c0ea6ce3de183926f174cf6622601bcfe2ccfd8 (diff)
downloadpttbbs-5c3bb0ce3bcbd99430b25b4d7ecfb474d4814947.tar
pttbbs-5c3bb0ce3bcbd99430b25b4d7ecfb474d4814947.tar.gz
pttbbs-5c3bb0ce3bcbd99430b25b4d7ecfb474d4814947.tar.bz2
pttbbs-5c3bb0ce3bcbd99430b25b4d7ecfb474d4814947.tar.lz
pttbbs-5c3bb0ce3bcbd99430b25b4d7ecfb474d4814947.tar.xz
pttbbs-5c3bb0ce3bcbd99430b25b4d7ecfb474d4814947.tar.zst
pttbbs-5c3bb0ce3bcbd99430b25b4d7ecfb474d4814947.zip
- change hard coded .DIR to macro definitions
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3667 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/vote.c')
-rw-r--r--mbbsd/vote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/vote.c b/mbbsd/vote.c
index ce92c21f..0a91f3f2 100644
--- a/mbbsd/vote.c
+++ b/mbbsd/vote.c
@@ -151,7 +151,7 @@ vote_report(const char *bname, const char *fname, char *fpath)
}
strlcpy(header.filename, ip, sizeof(header.filename));
- strcpy(ip, ".DIR");
+ strcpy(ip, FN_DIR);
if ((fd = open(fpath, O_WRONLY | O_CREAT, 0644)) >= 0) {
flock(fd, LOCK_EX);
lseek(fd, 0, SEEK_END);