Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 424755
Collapse All | Expand All

(-)lib/stdio.in.h (-15 / +4 lines)
Lines 699-720 Link Here
699
# endif
699
# endif
700
#endif
700
#endif
701
701
702
#if @GNULIB_GETS@
703
# if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@
704
#  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
705
#   undef gets
706
#   define gets rpl_gets
707
#  endif
708
_GL_FUNCDECL_RPL (gets, char *, (char *s) _GL_ARG_NONNULL ((1)));
709
_GL_CXXALIAS_RPL (gets, char *, (char *s));
710
# else
711
_GL_CXXALIAS_SYS (gets, char *, (char *s));
712
#  undef gets
713
# endif
714
_GL_CXXALIASWARN (gets);
715
/* It is very rare that the developer ever has full control of stdin,
702
/* It is very rare that the developer ever has full control of stdin,
716
   so any use of gets warrants an unconditional warning.  Assume it is
703
   so any use of gets warrants an unconditional warning; besides, C11
717
   always declared, since it is required by C89.  */
704
   removed it.  */
705
#undef gets
706
#if HAVE_RAW_DECL_GETS
718
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
707
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
719
#endif
708
#endif
720
709

Return to bug 424755