aboutsummaryrefslogtreecommitdiffstats
path: root/core/elflink/load_env32.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/elflink/load_env32.c')
-rw-r--r--core/elflink/load_env32.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/elflink/load_env32.c b/core/elflink/load_env32.c
index 75f56296..2dd4a7bc 100644
--- a/core/elflink/load_env32.c
+++ b/core/elflink/load_env32.c
@@ -139,6 +139,15 @@ void load_env32(com32sys_t * regs)
dprintf("Starting 32 bit elf module subsystem...\n");
call_constr();
+ PATH = malloc(strlen(PATH_DEFAULT) + 1);
+ if (!PATH) {
+ printf("Couldn't allocate memory for PATH\n");
+ return;
+ }
+
+ strcpy(PATH, PATH_DEFAULT);
+ PATH[strlen(PATH_DEFAULT)] = '\0';
+
init_module_subsystem(&core_module);
start_ldlinux(argv);