You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
416 B

  1. --- a/lib/stdio.in.h
  2. +++ b/lib/stdio.in.h
  3. @@ -733,7 +733,7 @@ _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. +#define gets(a) fgets( a, sizeof(*(a)), stdin)
  9. #endif