Skip to content

Commit

Permalink
Fixed potential array out of bounds condition when break would never …
Browse files Browse the repository at this point in the history
…trigger.
  • Loading branch information
schinkelg committed Mar 29, 2024
1 parent db897d0 commit 076390e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BasiliskII/src/Unix/video_x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2356,10 +2356,10 @@ static void update_display_dynamic(int ticker, driver_window *drv)
y2s = sm_uptd[ticker % 8];
y2a = 8;
for (i = 0; i < 6; i++) {
max_box = sm_no_boxes[i];
if (ticker % (2 << i))
break;
}
max_box = sm_no_boxes[i];

if (y2a) {
for (y1=0; y1<16; y1++) {
Expand Down

0 comments on commit 076390e

Please sign in to comment.