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:
@@ -189,7 +189,7 @@ elf_load_image(Directory *directory, const char *path)
|
|||||||
|
|
||||||
status_t status = elf_load_image(fd, image);
|
status_t status = elf_load_image(fd, image);
|
||||||
if (status == B_OK) {
|
if (status == B_OK) {
|
||||||
image->name = strdup(path);
|
image->name = kernel_args_strdup(path);
|
||||||
|
|
||||||
// insert to kernel args
|
// insert to kernel args
|
||||||
image->next = gKernelArgs.preloaded_images;
|
image->next = gKernelArgs.preloaded_images;
|
||||||
|
|||||||
Reference in New Issue
Block a user