From 5c4a756176e7a8065d32b9b00e1d63d739930cf2 Mon Sep 17 00:00:00 2001 From: ngiddings Date: Sat, 17 Apr 2021 04:24:23 -0500 Subject: [PATCH] Fixed fatal error while loading modules strcpy() was called with a char instead of a char*, obviously causing a crash --- src/x86/multiboot2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,