From 4b64f438634d6bc862e9381317f9d8905b85ca91 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Mon, 29 Oct 2012 19:02:40 +0000 Subject: [PATCH] terminology: fix potential segfault when writing after end of line SVN revision: 78619 --- src/bin/termptyops.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/termptyops.c b/src/bin/termptyops.c index 8675e23d..c56fbdd3 100644 --- a/src/bin/termptyops.c +++ b/src/bin/termptyops.c @@ -208,6 +208,7 @@ _termpty_text_append(Termpty *ty, const Eina_Unicode *codepoints, int len) { ty->state.wrapnext = 0; ty->state.cx++; + if (ty->state.cx >= (ty->w - 1)) return; #if defined(SUPPORT_DBLWIDTH) if (cells[ty->state.cx].att.dblwidth) {