Skip to content

Commit

Permalink
Merge pull request #326 from sminux/fix_unget_data_overflow
Browse files Browse the repository at this point in the history
Fixes #311
  • Loading branch information
marcoslot authored May 17, 2024
2 parents 7e91e72 + 51c0f64 commit e7996b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ unget_char(int ch, FILE *file)
*/
file_buffer *buffer = (file_buffer *) file;

if (buffer->unget_count >= 1024)
if (buffer->unget_count >= 1000)
{
perror("ungetc limit exceeded");
exit(ERROR_EXIT);
Expand Down

0 comments on commit e7996b6

Please sign in to comment.