termiolink: check return of ty_sb_prepend(). CID1365659

This commit is contained in:
Boris Faure 2016-11-08 21:15:42 +01:00
parent 57c811ce9b
commit 93eb6e6663
1 changed files with 2 additions and 1 deletions

View File

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