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:
Axel Dörfler 2004-05-10 16:49:23 +00:00
parent e883af3cda
commit bf67cc9591

View File

@ -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;