overview.c: Fix an out of bound access

Access 8 elements in a 4 elements array.

Signed-off-by: Michel Pollet <buserror@gmail.com>
master
Michel Pollet 2018-06-21 11:08:28 +01:00
parent f42a76e176
commit e5dee6bf3d
1 changed files with 1 additions and 1 deletions

View File

@ -928,7 +928,7 @@ overview(struct nk_context *ctx)
static int sel_nodes[4];
if (node_select != selected[0]) {
selected[0] = node_select;
for (i = 0; i < 8; ++i)
for (i = 0; i < 4; ++i)
sel_nodes[i] = node_select;
}
nk_layout_row_static(ctx, 18, 100, 1);