From addd54dc31603dc204773d3108dba4e000cd7657 Mon Sep 17 00:00:00 2001
From: A404M <ahmadmahmoudiprogrammer@gmail.com>
Date: Tue, 8 Oct 2024 04:16:27 +0330
Subject: added fasm support added compiler options tried to compile to fasm
 first

---
 src/utils/file.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'src/utils/file.c')

diff --git a/src/utils/file.c b/src/utils/file.c
index cdb2dfe..7620257 100644
--- a/src/utils/file.c
+++ b/src/utils/file.c
@@ -1,6 +1,5 @@
 #include "file.h"
 
-#include <stdio.h>
 #include <string.h>
 #include <utils/memory/memory.h>
 
@@ -24,7 +23,7 @@ Code *read_whole_file(const char *path) {
 
   size_t pathLen = strlen(path);
   code->code = str;
-  code->filePath = a404m_malloc(pathLen+1);
+  code->filePath = a404m_malloc((pathLen+1)*sizeof(char));
 
   memcpy(code->filePath, path, pathLen+1);
 
-- 
cgit v1.2.3