From bc36d7f896986820d48e7e462de8e2dc7ce9ce9d Mon Sep 17 00:00:00 2001 From: ALittlePatate Date: Sat, 13 May 2023 10:41:43 +0200 Subject: [PATCH] fix: jmp not jumping to the right location forgot to add 1 for the newline --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index dae37fb..4d08914 100644 --- a/src/main.c +++ b/src/main.c @@ -46,7 +46,7 @@ int main(int argc, char** argv) { const command_t* com = NULL; int main_hit = 0; while (fgets(line, sizeof(line), fptr)) { - char_read += strlen(line); + char_read += strlen(line) + 1; if (line[0] == ';' || line[0] == '\n') { ++line_number;