]> pd.if.org Git - pdclib/blobdiff - functions/stdio/gets.c
Fixed compile warnings / errors.
[pdclib] / functions / stdio / gets.c
index 27575223581ef8fa1f8ce1b9e52740ec21cc0f5f..3529b0be466074c2550a3d68f3179c9156949d48 100644 (file)
@@ -7,13 +7,13 @@
 */
 
 #include <stdio.h>
-#include <stdint.h>
+#include <limits.h>
 
 #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