Now uses the B_PATH_NAME_LENGTH constant.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8262 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-07-02 02:30:36 +00:00
parent 5f6aed4937
commit 5ace7ebc02

View File

@ -162,7 +162,7 @@ cmd_cd(int argc, char *argv[])
int
cmd_pwd(int argc, char *argv[])
{
char buffer[SYS_MAX_PATH_LEN];
char buffer[B_PATH_NAME_LENGTH];
if (getcwd(buffer, sizeof(buffer)) == NULL) {
printf("cd: sys_getcwd() returned error: %s!\n", strerror(errno));