mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
Kernel: Make chdir() take path+length
This commit is contained in:
parent
f231e9ea76
commit
c5890afc8b
Notes:
sideshowbarker
2024-07-19 10:19:34 +09:00
Author: https://github.com/awesomekling
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