Skip to content

Commit

Permalink
Fix bounds-checking bug
Browse files Browse the repository at this point in the history
  • Loading branch information
newsch committed May 27, 2019
1 parent 015dc30 commit 6a46bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ void draw_collab_cursors(collab_list_t *collab_list) {
for (int i = 0; i < collab_list->len; i++) {
c = collab_list->list[i];
// only draw cursors that exist and are visible on the screen
if (c != NULL && (c->x >= min_x && c->y <= max_x) &&
if (c != NULL && (c->x >= min_x && c->x <= max_x) &&
(c->y >= min_y && c->y <= max_y)) {
logd("Drawing collab %i\n", c->uid);

Expand Down

0 comments on commit 6a46bf1

Please sign in to comment.