aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termptyops.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2015-11-06 00:23:56 +0100
committerBoris Faure <billiob@gmail.com>2015-11-08 13:06:09 +0100
commit28965e6601d24e1d1b114559b7752ed40b8459b1 (patch)
tree24bf137547988468bdec0cb668f8957f042e6484 /src/bin/termptyops.c
parentconfig: add config_new() to create a new default config (diff)
downloadterminology-28965e6601d24e1d1b114559b7752ed40b8459b1.tar.gz
fix typo/bug spotted by afl-fuzz
Diffstat (limited to 'src/bin/termptyops.c')
-rw-r--r--src/bin/termptyops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/termptyops.c b/src/bin/termptyops.c
index 4c44f34..d553ebd 100644
--- a/src/bin/termptyops.c
+++ b/src/bin/termptyops.c
@@ -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);