diff options
-rw-r--r-- | mbbsd/vote.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mbbsd/vote.c b/mbbsd/vote.c index ddc4a27e..9bccf14a 100644 --- a/mbbsd/vote.c +++ b/mbbsd/vote.c @@ -867,12 +867,12 @@ user_vote_one(vote_buffer_t *vbuf, const char *bname, int ind) setbfile(buf, bname, vbuf->limits); if (dashf(buf)) { int limits_logins, limits_posts; - cfp = fopen(buf, "r"); - assert(cfp); - fscanf(cfp, "%d", &closetime); - fscanf(cfp, "%d", &limits_logins); - fscanf(cfp, "%d", &limits_posts); - fclose(cfp); + FILE * lfp = fopen(buf, "r"); + assert(lfp); + fscanf(lfp, "%d", &closetime); + fscanf(lfp, "%d", &limits_logins); + fscanf(lfp, "%d", &limits_posts); + fclose(lfp); if (cuser.firstlogin > closetime || cuser.numposts < limits_posts || cuser.numlogins < limits_logins) { vmsg("§A¤£°÷¸ê²`³á¡I"); |