lftp/lftp.patch

changeset 776
6fb4607b503b
parent 467
e2558d4b246c
equal deleted inserted replaced
1:e2c144d2d8d9 2:09a19d392794
28 +# include <ncurses/term.h> 28 +# include <ncurses/term.h>
29 +# endif 29 +# endif
30 #elif defined(HAVE_TERMCAP_H) 30 #elif defined(HAVE_TERMCAP_H)
31 # include <termcap.h> 31 # include <termcap.h>
32 #endif 32 #endif
33 Index: lib/stdio.in.h
34 --- lib/stdio.in.h.orig 2012-07-03 15:29:29.000000000 +0200
35 +++ lib/stdio.in.h 2012-08-03 14:31:28.929658700 +0200
36 @@ -704,8 +704,12 @@
37 removed it. */
38 #undef gets
39 #if HAVE_RAW_DECL_GETS
40 +#ifdef __cplusplus
41 +_GL_WARN_ON_USE (std::gets, "gets is a security hole - use fgets instead");
42 +#else
43 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
44 #endif
45 +#endif
46
47
48 #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@

mercurial