aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2016-11-08 21:15:42 +0100
committerBoris Faure <billiob@gmail.com>2016-11-08 21:15:42 +0100
commit93eb6e666311d90f8ea47802ebf2382fee863de7 (patch)
treebebf88b6817522850ccda8b0b44f4af6d33965dd
parenttermiolink: handle OOM. Fix CID1365658 (diff)
downloadterminology-93eb6e666311d90f8ea47802ebf2382fee863de7.tar.gz
termiolink: check return of ty_sb_prepend(). CID1365659
-rw-r--r--src/bin/termiolink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/termiolink.c b/src/bin/termiolink.c
index afbd7c9..86d0bfc 100644
--- a/src/bin/termiolink.c
+++ b/src/bin/termiolink.c
@@ -239,7 +239,8 @@ termio_link_find(Evas_Object *obj, int cx, int cy,
goback = EINA_FALSE;
goforward = EINA_TRUE;
}
- ty_sb_prepend(&sb, txt, txtlen);
+ res = ty_sb_prepend(&sb, txt, txtlen);
+ if (res < 0) goto end;
if (isspace(sb.buf[0]))
{
int old_txtlen = txtlen;