1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +00:00

Kernel: Make chdir() take path+length

This commit is contained in:
Andreas Kling 2020-01-05 22:06:25 +01:00
parent f231e9ea76
commit c5890afc8b
3 changed files with 6 additions and 5 deletions

View file

@ -245,7 +245,7 @@ int fstat(int fd, struct stat* statbuf)
int chdir(const char* path)
{
int rc = syscall(SC_chdir, path);
int rc = syscall(SC_chdir, path, strlen(path));
__RETURN_WITH_ERRNO(rc, rc, -1);
}