summaryrefslogtreecommitdiffstats
path: root/mbbsd/vote.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/vote.c')
-rw-r--r--mbbsd/vote.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mbbsd/vote.c b/mbbsd/vote.c
index 5aa6fda6..917865e8 100644
--- a/mbbsd/vote.c
+++ b/mbbsd/vote.c
@@ -966,9 +966,11 @@ 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';
move((count % 15) + 5, (count / 15) * 40);
prints("%c%s", chosen[curr_page * ITEM_PER_PAGE + i] ? '*' : ' ',
- strtok(inbuf, "\n\0"));
+ inbuf);
choices[count % ITEM_PER_PAGE] = inbuf[0];
count++;
}