fix (VFS): fixed path resolving bug, that caused random strings to be resolved as part of the path
This commit is contained in:
parent
713ffbc089
commit
0732a19f8a
|
@ -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';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue