diff options
Diffstat (limited to 'src/screen.c')
| -rw-r--r-- | src/screen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c index 697e08a..ab912a1 100644 --- a/src/screen.c +++ b/src/screen.c @@ -846,6 +846,9 @@ struct term *term_new(const struct term_options *opt) static const struct term_options defaults; if (!opt) opt = &defaults; + for (size_t i = 0; i < sizeof(opt->reserved) / sizeof(opt->reserved[0]); i++) + if (opt->reserved[i]) + return NULL; if (opt->size.x < 0 || opt->size.y < 0 || opt->size.x > TERM_MAX_COLS) return NULL; if (opt->scrollback < 0 || (unsigned)opt->cursor_style > TERM_CURSOR_BAR) |
