diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2011-04-17 19:21:19 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2011-04-17 19:21:19 +0000 |
commit | 044c0f978f8faee76af943a11a93e46232b01e74 (patch) | |
tree | 4697d10e82c844a51931871fd5faeb7c9d570677 | |
parent | 3dc7b805d3c5a5174b7dd431e4ac8099342c664f (diff) | |
download | rtmux-044c0f978f8faee76af943a11a93e46232b01e74.tar.gz rtmux-044c0f978f8faee76af943a11a93e46232b01e74.tar.bz2 rtmux-044c0f978f8faee76af943a11a93e46232b01e74.zip |
Fix character position check, from Tiago Resende.
-rw-r--r-- | screen-write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/screen-write.c b/screen-write.c index fd4c7846..1fee190d 100644 --- a/screen-write.c +++ b/screen-write.c @@ -1048,7 +1048,7 @@ screen_write_cell(struct screen_write_ctx *ctx, /* Sanity checks. */ if (((s->mode & MODE_WRAP) && s->cx > screen_size_x(s) - width) - || s->cy > screen_size_y(s) - width) + || s->cy > screen_size_y(s) - 1) return; /* Handle overwriting of UTF-8 characters. */ |