aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-05-11 21:13:17 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-05-11 21:13:17 +0330
commite12086b3a9f2610425ca6fa73749453c762eb56e (patch)
tree89bc9e3e0f5a67c469bef24f8a2ff95af9e445ea /src/utils
parentfe81eba1c232ab99bcfedf9546a82b06c796b086 (diff)
added comptime keyword to variables
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/file.c b/src/utils/file.c
index 61165d2..971dd67 100644
--- a/src/utils/file.c
+++ b/src/utils/file.c
@@ -40,7 +40,7 @@ void filePush(const char *filePath, char *code) {
fileCodes[fileCodes_length] = code;
fileCodes_names[fileCodes_length] =
a404m_malloc((filePath_length + 1) * sizeof(**fileCodes_names));
- for (size_t i = 0; i < filePath_length; ++i) {
+ for (size_t i = 0; i < filePath_length + 1; ++i) {
fileCodes_names[fileCodes_length][i] = filePath[i];
}
fileCodes_length += 1;