Now uses the correct heap to allocate the image path name (kernel_args).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7502 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e883af3cda
commit
bf67cc9591
@ -189,7 +189,7 @@ elf_load_image(Directory *directory, const char *path)
|
||||
|
||||
status_t status = elf_load_image(fd, image);
|
||||
if (status == B_OK) {
|
||||
image->name = strdup(path);
|
||||
image->name = kernel_args_strdup(path);
|
||||
|
||||
// insert to kernel args
|
||||
image->next = gKernelArgs.preloaded_images;
|
||||
|
Loading…
Reference in New Issue
Block a user