Merge pull request #701 from buserror/fix-out-of-bound-access

overview.c: Fix an out of bound access
This commit is contained in:
Micha Mettke 2018-06-29 21:43:12 +02:00 committed by GitHub
commit 4ce3b6a0b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);