about summary refs log tree commit diff
path: root/Src/jobs.c
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2000-09-22 22:28:05 +0000
committerClint Adams <clint@users.sourceforge.net>2000-09-22 22:28:05 +0000
commit4225207e4cf843a77e109c23580ca6624b56cf92 (patch)
tree0ddd650bf07fb04f071e8172980bee7e643d18e9 /Src/jobs.c
parent2a625db39df5e5e5f72556f0cd4a02005115c50f (diff)
downloadzsh-4225207e4cf843a77e109c23580ca6624b56cf92.tar.gz
zsh-4225207e4cf843a77e109c23580ca6624b56cf92.tar.xz
zsh-4225207e4cf843a77e109c23580ca6624b56cf92.zip
12860: don't limit size of pwd in job table
Diffstat (limited to 'Src/jobs.c')
-rw-r--r--Src/jobs.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/Src/jobs.c b/Src/jobs.c
index ea96200eb..ca4b12004 100644
--- a/Src/jobs.c
+++ b/Src/jobs.c
@@ -982,15 +982,11 @@ initjob(void)
 void
 setjobpwd(void)
 {
-    int i, l;
+    int i;
 
     for (i = 1; i < MAXJOB; i++)
-	if (jobtab[i].stat && !jobtab[i].pwd) {
-	    if ((l = strlen(pwd)) >= PATH_MAX)
-		jobtab[i].pwd = ztrdup(pwd + l - PATH_MAX);
-	    else
-		jobtab[i].pwd = ztrdup(pwd);
-	}
+	if (jobtab[i].stat && !jobtab[i].pwd)
+	    jobtab[i].pwd = ztrdup(pwd);
 }
 
 /* print pids for & */