[vfs] Fix an allocation bug

This commit is contained in:
Kevin Lange 2011-11-26 17:18:00 -06:00
parent fe9b54c35c
commit 94fe43a45e

View File

@ -82,7 +82,7 @@ kopen(
memcpy(root_clone, fs_root, sizeof(fs_node_t));
return root_clone;
}
char * path = (char *)malloc(sizeof(char) * (path_len + 1));
char * path = (char *)malloc(sizeof(char) * 1024);
memcpy(path, npath, path_len);
char * path_offset = path;
uint32_t path_depth = 0;