diff --git a/src/kernel/apps/shell/commands.c b/src/kernel/apps/shell/commands.c index 8cf5c3fd8d..ab2538c025 100644 --- a/src/kernel/apps/shell/commands.c +++ b/src/kernel/apps/shell/commands.c @@ -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));