about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Src/jobs.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 771d52374..5f0795509 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-10-29  Barton E. Schaefer  <schaefer@zsh.org>
+
+	* 31929: Src/jobs.c: fix DPUTS3() test condition from 31906.
+
 2013-10-28  Bart Schaefer  <schaefer@zsh.org>
 
 	* unposted: NEWS: mention HISTORY_IGNORE
diff --git a/Src/jobs.c b/Src/jobs.c
index 336c5d4cf..371b8eb32 100644
--- a/Src/jobs.c
+++ b/Src/jobs.c
@@ -945,7 +945,7 @@ printjob(Job jn, int lng, int synch)
 	job = jn - oldjobtab;
     else
 	job = jn - jobtab;
-    DPUTS3(job < 0 || job > (synch > 1 ? oldmaxjob : maxjob),
+    DPUTS3(job < 0 || job > (oldjobtab && synch > 1 ? oldmaxjob : maxjob),
 	   "bogus job number, jn = %L, jobtab = %L, oldjobtab = %L",
 	   (long)jn, (long)jobtab, (long)oldjobtab);