From ffd8beb6f6bbac1b06948e6ce8d0ff116a7fd021 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 12 May 2017 13:29:05 +0000 Subject: [PATCH] Need to clear tty context before using it. --- screen-write.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/screen-write.c b/screen-write.c index 9d710397..894da4b7 100644 --- a/screen-write.c +++ b/screen-write.c @@ -390,6 +390,8 @@ screen_write_initctx(struct screen_write_ctx *ctx, struct tty_ctx *ttyctx) { struct screen *s = ctx->s; + memset(ttyctx, 0, sizeof *ttyctx); + ttyctx->wp = ctx->wp; ttyctx->ocx = s->cx;