diff options
author | James <> | 2013-03-17 12:16:37 +0000 |
---|---|---|
committer | James <> | 2013-03-17 12:16:37 +0000 |
commit | 27b76ab0671089c47506615a796a261e993896a7 (patch) | |
tree | 61213d67e7fa87b20356b23798558e2c4212c42f /tools/bison/patches/.svn/text-base/100-fix-gets-removal.patch.svn-base | |
download | trunk-36060-master.tar.gz trunk-36060-master.tar.bz2 trunk-36060-master.zip |
Diffstat (limited to 'tools/bison/patches/.svn/text-base/100-fix-gets-removal.patch.svn-base')
-rw-r--r-- | tools/bison/patches/.svn/text-base/100-fix-gets-removal.patch.svn-base | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/bison/patches/.svn/text-base/100-fix-gets-removal.patch.svn-base b/tools/bison/patches/.svn/text-base/100-fix-gets-removal.patch.svn-base new file mode 100644 index 0000000..169bfd6 --- /dev/null +++ b/tools/bison/patches/.svn/text-base/100-fix-gets-removal.patch.svn-base @@ -0,0 +1,16 @@ +--- a/lib/stdio.in.h ++++ b/lib/stdio.in.h +@@ -704,13 +704,6 @@ _GL_WARN_ON_USE (getline, "getline is un + # endif + #endif + +-/* It is very rare that the developer ever has full control of stdin, +- so any use of gets warrants an unconditional warning; besides, C11 +- removed it. */ +-#undef gets +-#if HAVE_RAW_DECL_GETS +-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +-#endif + + + #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@ |