fix (VFS): fixed path resolving bug, that caused random strings to be resolved as part of the path

This commit is contained in:
antifallobst 2023-05-30 20:47:44 +02:00
parent 713ffbc089
commit 0732a19f8a
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ vfs_node_T* vfs_resolve_path(fs_T* filesystem, string_t path) {
length = string_find_next(path, '/'); length = string_find_next(path, '/');
char name[length]; char name[length+1];
memory_copy((void*)path, name, length); memory_copy((void*)path, name, length);
name[length] = '\0'; name[length] = '\0';