summaryrefslogtreecommitdiff
path: root/src/kernel/syscalls.h
diff options
context:
space:
mode:
authordzwdz2021-08-22 15:59:04 +0200
committerdzwdz2021-08-22 15:59:04 +0200
commite2075e56f875e077cd5c3d6e3c85368c1087654f (patch)
treee07b1fd44449fee5a01514e447af8eed15ac611c /src/kernel/syscalls.h
parent2c0113cb72b63ba7177d14a60bcd9e51eee8e5cf (diff)
fs_open() accepts a signed length, fixes an infinite loop
it occureed if the path_simplify returned a negative value - instead of being interpreter as an error it just carried on, ending up in an infinite loop.
Diffstat (limited to 'src/kernel/syscalls.h')
-rw-r--r--src/kernel/syscalls.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/syscalls.h b/src/kernel/syscalls.h
index c8dca05..f3e8dc0 100644
--- a/src/kernel/syscalls.h
+++ b/src/kernel/syscalls.h
@@ -33,7 +33,7 @@ int _syscall_await(char *buf, int len);
*/
int _syscall_fork();
-fd_t _syscall_fs_open(const char *path, size_t len);
+fd_t _syscall_fs_open(const char *path, int len);
int _syscall_mount(const char *path, int len, fd_t fd);
/** Prints a message to the debug console.