100-fix-gets-removal.patch 427 B

12345678910111213141516
  1. --- a/lib/stdio.in.h
  2. +++ b/lib/stdio.in.h
  3. @@ -719,13 +719,6 @@
  4. # endif
  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; besides, C11
  8. - removed it. */
  9. -#undef gets
  10. -#if HAVE_RAW_DECL_GETS
  11. -_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
  12. -#endif
  13. #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@