From 0732a19f8a79b41546f2d0c76f2b247529de342a Mon Sep 17 00:00:00 2001 From: antifallobst Date: Tue, 30 May 2023 20:47:44 +0200 Subject: [PATCH] fix (VFS): fixed path resolving bug, that caused random strings to be resolved as part of the path --- src/drivers/builtin/fs/vfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/builtin/fs/vfs.c b/src/drivers/builtin/fs/vfs.c index 4a7ae25..de47aec 100644 --- a/src/drivers/builtin/fs/vfs.c +++ b/src/drivers/builtin/fs/vfs.c @@ -309,7 +309,7 @@ vfs_node_T* vfs_resolve_path(fs_T* filesystem, string_t path) { length = string_find_next(path, '/'); - char name[length]; + char name[length+1]; memory_copy((void*)path, name, length); name[length] = '\0';