about summary refs log tree commit diff
path: root/Src/Modules
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2007-10-15 13:30:07 +0000
committerClint Adams <clint@users.sourceforge.net>2007-10-15 13:30:07 +0000
commit951c8cca0f49492aa51dfcd622bd1a0b87e422cd (patch)
tree59a5a89ead53b538297a4a05253edca7130c726a /Src/Modules
parent48139337d3baa493d1dcb3601b5cde03891a88c6 (diff)
downloadzsh-951c8cca0f49492aa51dfcd622bd1a0b87e422cd.tar.gz
zsh-951c8cca0f49492aa51dfcd622bd1a0b87e422cd.tar.xz
zsh-951c8cca0f49492aa51dfcd622bd1a0b87e422cd.zip
23957: minor fixes.
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/curses.c2
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;
     }