Package: dico / 2.2-8

undef-gets.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Eliminated check for gets() so source builds with eglibc (LP: #1163486).
Forwarded: yes
Bug-Debian: http://bugs.debian.org/701390
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1163486
Author: Daniel T Chen <crimsun@ubuntu.com>
--- dico-2.2.orig/gnu/stdio.in.h       2012-03-08 08:02:25.000000000 -0500
+++ dico-2.2/gnu/stdio.in.h    2013-04-06 15:43:02.706749158 -0400
@@ -163,8 +163,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.  */
+#ifdef gets
 #undef gets
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
+#endif

 #if @GNULIB_FOPEN@
 # if @REPLACE_FOPEN@