libiconv_stdio.patch 629 B

12345678910111213
  1. --- a/srclib/stdio.in.h 2011-08-07 15:42:06.000000000 +0200
  2. +++ b/srclib/stdio.in.h 2015-06-10 09:27:58.129056262 +0200
  3. @@ -695,8 +696,9 @@ _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. +/*_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");*/
  9. +#define gets(a) fgets( a, sizeof(*(a)), stdin)
  10. #endif
  11. #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@