]>
Commit | Line | Data |
---|---|---|
a18c2318 MT |
1 | ISO C11 removes the specification of gets() from the C language, eglibc 2.16+ removed it |
2 | ||
3 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | |
4 | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | |
5 | ||
6 | Upstream-Status: Pending | |
7 | Index: grub-1.99/grub-core/gnulib/stdio.in.h | |
8 | =================================================================== | |
9 | --- grub-1.99.orig/grub-core/gnulib/stdio.in.h 2010-12-01 06:45:43.000000000 -0800 | |
10 | +++ grub-1.99/grub-core/gnulib/stdio.in.h 2012-07-04 12:25:02.057099107 -0700 | |
11 | @@ -140,8 +140,10 @@ | |
12 | /* It is very rare that the developer ever has full control of stdin, | |
13 | so any use of gets warrants an unconditional warning. Assume it is | |
14 | always declared, since it is required by C89. */ | |
15 | +#if defined gets | |
16 | #undef gets | |
17 | _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); | |
18 | +#endif | |
19 | ||
20 | #if @GNULIB_FOPEN@ | |
21 | # if @REPLACE_FOPEN@ |