diff options
author | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-02-20 12:20:39 +0800 |
---|---|---|
committer | victor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-02-20 12:20:39 +0800 |
commit | 8294fd6dd4aacd6eede9df476ee65bd3703c844e (patch) | |
tree | 1fdad6568894902cef4d71d1116834f5e23a0360 | |
parent | 9bbf2d58515eb0aa0c95a7ecf7cb408cb6d568e2 (diff) | |
download | pttbbs-8294fd6dd4aacd6eede9df476ee65bd3703c844e.tar pttbbs-8294fd6dd4aacd6eede9df476ee65bd3703c844e.tar.gz pttbbs-8294fd6dd4aacd6eede9df476ee65bd3703c844e.tar.bz2 pttbbs-8294fd6dd4aacd6eede9df476ee65bd3703c844e.tar.lz pttbbs-8294fd6dd4aacd6eede9df476ee65bd3703c844e.tar.xz pttbbs-8294fd6dd4aacd6eede9df476ee65bd3703c844e.tar.zst pttbbs-8294fd6dd4aacd6eede9df476ee65bd3703c844e.zip |
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1552 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/vote.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/vote.c b/mbbsd/vote.c index 01e518f1..c465f063 100644 --- a/mbbsd/vote.c +++ b/mbbsd/vote.c @@ -40,6 +40,7 @@ convert_to_newversion(FILE *fp, char *file, char *ballots) flock(fileno(fp), LOCK_UN); return; } + sscanf(buf, " %d", &tmp); if ((fd = open(ballots, O_RDONLY)) != -1) { sprintf(buf, "%s.new", ballots); @@ -57,7 +58,6 @@ convert_to_newversion(FILE *fp, char *file, char *ballots) Rename(buf, ballots); } - sscanf(buf, " %d", &tmp); sprintf(buf2, "%s.new", file); if (!(fpw = fopen(buf2, "w"))) { rewind(fp); |