From efceadecd1bc48e2169bdf693058b2be25249827 Mon Sep 17 00:00:00 2001 From: Oskar Date: Wed, 3 Apr 2024 22:22:19 +0200 Subject: new check_length_fix_stdin. It checks length of buffers and seems to also fix the situation where if i input more characters in to fgets than allowed the characters sort of get stuck in stdin and thats a problem. Seems like this function fixes this. --- test/testgrounds/file.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/testgrounds/file.txt b/test/testgrounds/file.txt index 42bd85b..9a366a7 100644 --- a/test/testgrounds/file.txt +++ b/test/testgrounds/file.txt @@ -1,7 +1,7 @@ what! - +hello lksdjflsdjfls209432+093+20943????01+230+2,.,-.,-,-.,-.,.,..,.,.,¨.¨,¨.,¨.´.´,´.,´.,´.´,.´,.´.´,´.????`?`?`?`?`?`?`?`?`???????!!!!!!!! -- cgit v1.2.3