diff options
Diffstat (limited to 'Src/Modules/curses.c')
-rw-r--r-- | Src/Modules/curses.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Modules/curses.c b/Src/Modules/curses.c index bfcbeca01..1cc711a2d 100644 --- a/Src/Modules/curses.c +++ b/Src/Modules/curses.c @@ -78,7 +78,7 @@ zcurses_validate_window(char *win, int criteria) target = (unsigned)atoi(win); - if (target > ZCURSES_MAX_WINDOWS) { + if (target > ZCURSES_MAX_WINDOWS || target < 1) { zc_errno = ZCURSES_ERANGE; return -1; } |