Skip to content

Commit

Permalink
Merge pull request #14 from tophyr/define_parsing
Browse files Browse the repository at this point in the history
Fix `#define` parsing bug
  • Loading branch information
cotillion committed Dec 6, 2023
2 parents dfa4949 + 3c8feee commit 0278713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lex.c
Original file line number Diff line number Diff line change
Expand Up @@ -1909,7 +1909,7 @@ add_input(char *p)
}
outp -= l;
nbuf += l;
strcpy(outp, p);
memcpy(outp, p, l);
}

#define DEFHASH 1999
Expand Down

0 comments on commit 0278713

Please sign in to comment.