overview.c: Fix an out of bound access
Access 8 elements in a 4 elements array. Signed-off-by: Michel Pollet <buserror@gmail.com>
This commit is contained in:
parent
f42a76e176
commit
e5dee6bf3d
@ -928,7 +928,7 @@ overview(struct nk_context *ctx)
|
|||||||
static int sel_nodes[4];
|
static int sel_nodes[4];
|
||||||
if (node_select != selected[0]) {
|
if (node_select != selected[0]) {
|
||||||
selected[0] = node_select;
|
selected[0] = node_select;
|
||||||
for (i = 0; i < 8; ++i)
|
for (i = 0; i < 4; ++i)
|
||||||
sel_nodes[i] = node_select;
|
sel_nodes[i] = node_select;
|
||||||
}
|
}
|
||||||
nk_layout_row_static(ctx, 18, 100, 1);
|
nk_layout_row_static(ctx, 18, 100, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user