aboutsummaryrefslogtreecommitdiff
path: root/hush.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-05-11 16:36:03 +0000
committerEric Andersen <andersen@codepoet.org>2001-05-11 16:36:03 +0000
commit9d94deabd398634c6d1c601ba276f5afd97b2050 (patch)
tree962c36aed0e52cd00f6220e5ac542356212b89c8 /hush.c
parent238da24620360655588f5a86f45c80f4966fd77d (diff)
downloadbusybox-9d94deabd398634c6d1c601ba276f5afd97b2050.tar.gz
Use xgetcwd
Diffstat (limited to 'hush.c')
-rw-r--r--hush.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hush.c b/hush.c
index d0b30ebac..abc8f6e60 100644
--- a/hush.c
+++ b/hush.c
@@ -428,7 +428,7 @@ static int builtin_cd(struct child_prog *child)
printf("cd: %s: %s\n", newdir, strerror(errno));
return EXIT_FAILURE;
}
- getcwd(cwd, sizeof(char)*MAX_LINE);
+ cwd = xgetcwd(cwd);
return EXIT_SUCCESS;
}
@@ -567,7 +567,7 @@ static int builtin_jobs(struct child_prog *child)
/* built-in 'pwd' handler */
static int builtin_pwd(struct child_prog *dummy)
{
- getcwd(cwd, MAX_LINE);
+ cwd = xgetcwd(cwd);
puts(cwd);
return EXIT_SUCCESS;
}