emacs/emacs-24.1-gets.patch

14 lines
532 B
Diff

--- emacs-24.1/lib/stdio.in.h.old 2012-09-10 11:22:57.405938628 +0200
+++ emacs-24.1/lib/stdio.in.h 2012-09-10 11:24:01.071262324 +0200
@@ -715,8 +715,10 @@
/* It is very rare that the developer ever has full control of stdin,
so any use of gets warrants an unconditional warning. Assume it is
always declared, since it is required by C89. */
+#if HAVE_RAW_DECL_GETS
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
#endif
+#endif
#if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@