patch-srclib_stdio_in_h 843 B

1234567891011121314151617181920212223
  1. --- libiconv-1.14.orig/srclib/stdio.in.h 2011-08-07 08:42:06.000000000 -0500
  2. +++ libiconv-1.14/srclib/stdio.in.h 2015-07-11 04:55:49.187959362 -0500
  3. @@ -685,18 +685,10 @@ _GL_WARN_ON_USE (getline, "getline is un
  4. # undef gets
  5. # define gets rpl_gets
  6. # endif
  7. -_GL_FUNCDECL_RPL (gets, char *, (char *s) _GL_ARG_NONNULL ((1)));
  8. -_GL_CXXALIAS_RPL (gets, char *, (char *s));
  9. -# else
  10. -_GL_CXXALIAS_SYS (gets, char *, (char *s));
  11. -# undef gets
  12. -# endif
  13. -_GL_CXXALIASWARN (gets);
  14. -/* It is very rare that the developer ever has full control of stdin,
  15. - so any use of gets warrants an unconditional warning. Assume it is
  16. - always declared, since it is required by C89. */
  17. +#undef gets
  18. _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
  19. #endif
  20. +#endif
  21. #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@