aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dcs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dcs.c b/dcs.c
index ccbca07b..3191febe 100644
--- a/dcs.c
+++ b/dcs.c
@@ -67,7 +67,8 @@ void
dcs_put(struct terminal *term, uint8_t c)
{
LOG_DBG("PUT: %c", c);
- ensure_size(term, term->vt.dcs.idx + 1);
+ if (!ensure_size(term, term->vt.dcs.idx + 1))
+ return;
term->vt.dcs.data[term->vt.dcs.idx++] = c;
}