Skip to content

Commit

Permalink
fix: file name error in file open
Browse files Browse the repository at this point in the history
  • Loading branch information
wilyJ80 committed Dec 17, 2024
1 parent f83b2b2 commit 3213248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ int main(int argc, char *argv[]) {
lc = &line;

// opening the file again...
fd = fopen("./doc/examples/code.proc", "r");
fd = fopen(argv[1], "r");
if (fd == NULL) {
fprintf(stderr, "Error opening file\n");
return EXIT_FAILURE;
Expand Down

0 comments on commit 3213248

Please sign in to comment.