summaryrefslogtreecommitdiffstats
path: root/mbbsd/voteboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/voteboard.c')
-rw-r--r--mbbsd/voteboard.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/voteboard.c b/mbbsd/voteboard.c
index 0b644a60..10594079 100644
--- a/mbbsd/voteboard.c
+++ b/mbbsd/voteboard.c
@@ -44,7 +44,7 @@ do_voteboardreply(const fileheader_t * fhdr)
assert(fi);
while (fgets(genbuf, sizeof(genbuf), fi)) {
- char *newline;
+ char *space;
if (yes>=0)
{
@@ -67,8 +67,8 @@ do_voteboardreply(const fileheader_t * fhdr)
}
if(yes>=0) continue;
- newline = strpbrk(genbuf+4, " \n");
- if(newline) *newline='\0';
+ space = strpbrk(genbuf+4, " \n");
+ if(space) *space='\0';
if (!strncmp(genbuf + 4, cuser.userid, IDLEN)) {
move(5, 10);
outs("您已經連署過本篇了");