aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2024-10-08 04:16:27 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2024-10-08 04:17:08 +0330
commitaddd54dc31603dc204773d3108dba4e000cd7657 (patch)
tree621620c4ca5634680d7655e3474cf0b0bcec8e01 /src/utils
parentbf84010e01bb11874689ce53ea4df853b2e41c2b (diff)
added fasm support
added compiler options tried to compile to fasm first
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/file.c3
1 files changed, 1 insertions, 2 deletions
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);