010-remove_gets_definition_warning.patch (416B)
1 --- a/lib/stdio.in.h 2 +++ b/lib/stdio.in.h 3 @@ -733,7 +733,7 @@ _GL_CXXALIASWARN (gets); 4 /* It is very rare that the developer ever has full control of stdin, 5 so any use of gets warrants an unconditional warning. Assume it is 6 always declared, since it is required by C89. */ 7 -_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); 8 +#define gets(a) fgets( a, sizeof(*(a)), stdin) 9 #endif 10 11