X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fgets.c;h=3529b0be466074c2550a3d68f3179c9156949d48;hb=9f91688d2e009a4c73162da5693bb8f717497586;hp=27575223581ef8fa1f8ce1b9e52740ec21cc0f5f;hpb=46983693f019c28a1c2420e9e7dfc204916af411;p=pdclib 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