Skip to content

Commit

Permalink
fix typo/bug spotted by afl-fuzz
Browse files Browse the repository at this point in the history
  • Loading branch information
borisfaure committed Nov 8, 2015
1 parent 4b4a5e8 commit 28965e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/termptyops.c
Expand Up @@ -284,7 +284,7 @@ termpty_clear_screen(Termpty *ty, Termpty_Clear mode)
}
else
{
int yt = y % ty->w;
int yt = y % ty->h;
int yb = ty->h - ty->circular_offset;

termpty_cells_clear(ty, cells, ty->w * yb);
Expand Down

0 comments on commit 28965e6

Please sign in to comment.