diff options
author | nicm <nicm> | 2017-05-12 13:29:05 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2017-05-12 16:04:13 +0100 |
commit | 90f2a417af1d6a15435571e6512d75b7ab373c58 (patch) | |
tree | 6d2f4a12bc55882ec68a093e5f29c2aa0401d2cf | |
parent | 7c07f5f6405c2c38a374ecb41d1ab9615223f6ac (diff) | |
download | rtmux-90f2a417af1d6a15435571e6512d75b7ab373c58.tar.gz rtmux-90f2a417af1d6a15435571e6512d75b7ab373c58.tar.bz2 rtmux-90f2a417af1d6a15435571e6512d75b7ab373c58.zip |
Need to clear tty context before using it.
-rw-r--r-- | screen-write.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/screen-write.c b/screen-write.c index 6631ab56..ab0d1341 100644 --- a/screen-write.c +++ b/screen-write.c @@ -387,6 +387,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; |