aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termptyesc.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2015-11-14 21:25:39 +0100
committerBoris Faure <billiob@gmail.com>2015-11-14 21:26:37 +0100
commita0c249e6cabec48dc24d29bf470467f90cef2f4c (patch)
tree0028f8e1519a7ae2510ff6100e891e23860701e3 /src/bin/termptyesc.c
parentfix fuzzing so terminology works at all again (diff)
downloadterminology-a0c249e6cabec48dc24d29bf470467f90cef2f4c.tar.gz
fix crash when running tyfuzz. not in terminology
Diffstat (limited to 'src/bin/termptyesc.c')
-rw-r--r--src/bin/termptyesc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 81ede2f..3b0552f 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -1408,10 +1408,12 @@ _handle_esc_xterm(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce)
len = cc - c - (p - buf);
if (_xterm_parse_color(&p, &r, &g, &b, len) < 0)
goto err;
+#ifndef ENABLE_FUZZING
evas_object_textgrid_palette_set(
termio_textgrid_get(ty->obj),
EVAS_TEXTGRID_PALETTE_STANDARD, 0,
r, g, b, 0xff);
+#endif
}
break;
case 777: