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:
parent
f231e9ea76
commit
c5890afc8b
3 changed files with 6 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue