100-fix-gets-removal.patch 575 B

123456789101112131415
  1. --- a/lib/stdio.in.h
  2. +++ b/lib/stdio.in.h
  3. @@ -177,12 +177,6 @@ _GL_WARN_ON_USE (fflush, "fflush is not
  4. "use gnulib module fflush for portable POSIX compliance");
  5. #endif
  6. -/* It is very rare that the developer ever has full control of stdin,
  7. - so any use of gets warrants an unconditional warning. Assume it is
  8. - always declared, since it is required by C89. */
  9. -#undef gets
  10. -_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
  11. -
  12. #if @GNULIB_FOPEN@
  13. # if @REPLACE_FOPEN@
  14. # if !(defined __cplusplus && defined GNULIB_NAMESPACE)