billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=28965e6601d24e1d1b114559b7752ed40b8459b1

commit 28965e6601d24e1d1b114559b7752ed40b8459b1
Author: Boris Faure <bill...@gmail.com>
Date:   Fri Nov 6 00:23:56 2015 +0100

    fix typo/bug spotted by afl-fuzz
---
 src/bin/termptyops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);

-- 


Reply via email to