summaryrefslogtreecommitdiff
path: root/web/web_scoreboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'web/web_scoreboard.c')
-rw-r--r--web/web_scoreboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/web_scoreboard.c b/web/web_scoreboard.c
index f5afcc5..71b239d 100644
--- a/web/web_scoreboard.c
+++ b/web/web_scoreboard.c
@@ -209,7 +209,7 @@ void draw_visits()
int n_visits = state->legs[0]->n_visits > state->legs[1]->n_visits ?
state->legs[0]->n_visits : state->legs[1]->n_visits;
- struct dom_elem **elemv = malloc(6 * n_visits * sizeof(*elemv));
+ struct dom_elem **elemv = malloc(6 * (n_visits + 1) * sizeof(*elemv));
int elemc = 0;
char buf[32], buf2[32];