summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/vote.c2
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);