From e12086b3a9f2610425ca6fa73749453c762eb56e Mon Sep 17 00:00:00 2001 From: A404M Date: Sun, 11 May 2025 21:13:17 +0330 Subject: added comptime keyword to variables --- src/utils/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils') 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; -- cgit v1.2.3