diff --git a/src/x86/multiboot2.c b/src/x86/multiboot2.c index c8fff69..d1f8a2f 100644 --- a/src/x86/multiboot2.c +++ b/src/x86/multiboot2.c @@ -29,7 +29,7 @@ void *read_multiboot_table(struct boot_info_t *boot_info, void *table) { boot_info->modules[boot_info->module_count].start = ((struct multiboot2_module_t*) table)->start; boot_info->modules[boot_info->module_count].end = ((struct multiboot2_module_t*) table)->end; - strcpy(boot_info->modules[boot_info->module_count].str, ((struct multiboot2_module_t*) table)->str); + strcpy(boot_info->modules[boot_info->module_count].str, &((struct multiboot2_module_t*) table)->str); insert_region(&boot_info->map, ((struct multiboot2_module_t*) table)->start, ((struct multiboot2_module_t*) table)->end - ((struct multiboot2_module_t*) table)->start,