fix: jmp not jumping to the right location

forgot to add 1 for the newline
This commit is contained in:
2023-05-13 10:41:43 +02:00
parent 09fe418e4d
commit bc36d7f896

View File

@@ -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;