1
0
mirror of https://github.com/sgmarz/osblog.git synced 2024-11-23 18:06:20 +04:00

Remove inode.size as a parameter to load_proc.

This commit is contained in:
Stephen Marz 2020-05-22 16:29:22 -04:00
parent d8ca63b780
commit b78c7aef42

View File

@ -259,7 +259,7 @@ fn exec_func(args: usize) {
// waits for the block driver to return.
fs::MinixFileSystem::read(8, &inode, buffer.get_mut(), inode.size, 0);
// Now we have the data, so the following will load the ELF file and give us a process.
let proc = elf::File::load_proc(&buffer, inode.size as usize);
let proc = elf::File::load_proc(&buffer);
if proc.is_err() {
println!("Failed to launch process.");
}