summaryrefslogtreecommitdiffstats
path: root/mbbsd/vote.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/vote.c')
-rw-r--r--mbbsd/vote.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mbbsd/vote.c b/mbbsd/vote.c
index 917865e8..d15ee08f 100644
--- a/mbbsd/vote.c
+++ b/mbbsd/vote.c
@@ -966,8 +966,7 @@ user_vote_one(vote_buffer_t *vbuf, const char *bname, int ind)
count = 0;
for (i = 0; i < ITEM_PER_PAGE && fgets(inbuf, sizeof(inbuf), cfp); i++) {
- char *newline = strpbrk(inbuf, "\r\n");
- if (newline) *newline = '\0';
+ chomp(inbuf);
move((count % 15) + 5, (count / 15) * 40);
prints("%c%s", chosen[curr_page * ITEM_PER_PAGE + i] ? '*' : ' ',
inbuf);