Skip to content

Commit

Permalink
Merge pull request vurtun#701 from buserror/fix-out-of-bound-access
Browse files Browse the repository at this point in the history
overview.c: Fix an out of bound access
  • Loading branch information
vurtun authored Jun 29, 2018
2 parents cd1624e + e5dee6b commit 4ce3b6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/overview.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4ce3b6a

Please sign in to comment.