projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed compile warnings / errors.
[fw/pdclib]
/
functions
/
stdio
/
gets.c
diff --git
a/functions/stdio/gets.c
b/functions/stdio/gets.c
index 27575223581ef8fa1f8ce1b9e52740ec21cc0f5f..3529b0be466074c2550a3d68f3179c9156949d48 100644
(file)
--- a/
functions/stdio/gets.c
+++ b/
functions/stdio/gets.c
@@
-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