about summary refs log tree commit diff
path: root/Src/builtin.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2003-11-13 14:34:33 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2003-11-13 14:34:33 +0000
commita6a63a147e4e28a1ac700938c6e7694c6de97e5d (patch)
tree57e657de4f3d4e73cad31e6fad4dabfb2112d790 /Src/builtin.c
parent990f7b91df5152bb7b873b7b998615744cd5d8e4 (diff)
downloadzsh-a6a63a147e4e28a1ac700938c6e7694c6de97e5d.tar.gz
zsh-a6a63a147e4e28a1ac700938c6e7694c6de97e5d.tar.xz
zsh-a6a63a147e4e28a1ac700938c6e7694c6de97e5d.zip
19242: Make job table dynamically reallocatable.
Diffstat (limited to 'Src/builtin.c')
-rw-r--r--Src/builtin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index 3f6295639..23946aba3 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -3981,11 +3981,11 @@ checkjobs(void)
 {
     int i;
 
-    for (i = 1; i < MAXJOB; i++)
+    for (i = 1; i <= maxjob; i++)
 	if (i != thisjob && (jobtab[i].stat & STAT_LOCKED) &&
 	    !(jobtab[i].stat & STAT_NOPRINT))
 	    break;
-    if (i < MAXJOB) {
+    if (i <= maxjob) {
 	if (jobtab[i].stat & STAT_STOPPED) {
 
 #ifdef USE_SUSPENDED