From 51c0f64848cbd3d8b7803b9a7dee5cb1ecd71c31 Mon Sep 17 00:00:00 2001 From: sminux Date: Sun, 5 May 2024 23:43:43 +0300 Subject: [PATCH] Make limit in condition up to 1000 --- src/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc.c b/src/misc.c index a3ac06c..ac7d9a4 100644 --- a/src/misc.c +++ b/src/misc.c @@ -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);