Fix a warning

This commit is contained in:
pjht 2020-08-30 09:44:51 -05:00
parent 542702482d
commit 2337e70876

View File

@ -3,10 +3,12 @@
#include <tasking.h>
#include <memory.h>
#include <stdio.h>
#include <string.h>
#include <dbg.h>
int posix_spawn(pid_t* pid, const char* path, const posix_spawn_file_actions_t* file_actions, const posix_spawnattr_t* attrp,
char* const argv[], char* const envp[]) {
FILE* image=fopen(path,"r");
FILE* image=fopen((char*)path,"r");
elf_header header;
fread(&header,sizeof(elf_header),1,image);
if (header.magic!=ELF_MAGIC) {