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';