100-fix-gets-removal.patch 659 B

12345678910111213141516171819
  1. diff --git a/lib/stdio.in.h b/lib/stdio.in.h
  2. index ff7c9c8..f391832 100644
  3. --- a/lib/stdio.in.h
  4. +++ b/lib/stdio.in.h
  5. @@ -739,14 +739,6 @@ _GL_WARN_ON_USE (getline, "getline is unportable - "
  6. # endif
  7. #endif
  8. -/* It is very rare that the developer ever has full control of stdin,
  9. - so any use of gets warrants an unconditional warning; besides, C11
  10. - removed it. */
  11. -#undef gets
  12. -#if HAVE_RAW_DECL_GETS && !defined __cplusplus
  13. -_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
  14. -#endif
  15. -
  16. #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@
  17. struct obstack;
  18. /* Grow an obstack with formatted output. Return the number of