X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=functions%2Fstdio%2Fgets.c;fp=functions%2Fstdio%2Fgets.c;h=3529b0be466074c2550a3d68f3179c9156949d48;hb=f5cc3b9b765b11964299fd033cf25f22ad778da3;hp=27575223581ef8fa1f8ce1b9e52740ec21cc0f5f;hpb=59eafb2ef31844e0c0177a00c7307b456085abb0;p=fw%2Fpdclib diff --git a/functions/stdio/gets.c b/functions/stdio/gets.c index 2757522..3529b0b 100644 --- a/functions/stdio/gets.c +++ b/functions/stdio/gets.c @@ -7,13 +7,13 @@ */ #include -#include +#include #ifndef REGTEST char * gets( char * s ) { - return fgets( s, SIZE_MAX, stdin ); + return fgets( s, INT_MAX, stdin ); /* TODO: Replace with an unchecking call. */ } #endif