aboutsummaryrefslogtreecommitdiff
path: root/screen-write.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-11-03 18:01:21 +0000
committerThomas Adam <thomas@xteddy.org>2017-11-03 18:01:21 +0000
commit6f3b6c8d92df9a40a095a2f64b7da4f37ad7cb1c (patch)
tree9234158e5e5cc2faa02ccd306b7fc1304c77c420 /screen-write.c
parent24c387206c7c66443b220c9c4f82fbe39fe6625b (diff)
parenta2681ffcee99a83d33d159132bb8e748f4144dd3 (diff)
downloadrtmux-6f3b6c8d92df9a40a095a2f64b7da4f37ad7cb1c.tar.gz
rtmux-6f3b6c8d92df9a40a095a2f64b7da4f37ad7cb1c.tar.bz2
rtmux-6f3b6c8d92df9a40a095a2f64b7da4f37ad7cb1c.zip
Merge branch 'obsd-master'
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/screen-write.c b/screen-write.c
index 44c28982..5ab472bd 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -403,6 +403,8 @@ screen_write_fast_copy(struct screen_write_ctx *ctx, struct screen *src,
cy = s->cy;
for (yy = py; yy < py + ny; yy++) {
+ if (yy >= gd->hsize + gd->sy)
+ break;
cx = s->cx;
for (xx = px; xx < px + nx; xx++) {
if (xx >= gd->linedata[yy].cellsize)