diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-08-27 16:39:43 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2016-08-27 16:39:43 +0000 |
commit | ab4af907963e30c2c41a950d58a33dbde265b0c0 (patch) | |
tree | c3a38a131d1864fe2695084922fdcf1c69efbd7b /lib/libc | |
parent | edd31b1f0aad008556fec49f69b79f2c93d42f27 (diff) |
Stop recommending the non-standard and slightly dangerous fgetln(3).
Recommend POSIX getline(3) instead.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdio/fgets.3 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/stdio/fgets.3 b/lib/libc/stdio/fgets.3 index 8b50c37ef90..b8b3795a173 100644 --- a/lib/libc/stdio/fgets.3 +++ b/lib/libc/stdio/fgets.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: fgets.3,v 1.33 2014/11/04 20:06:29 tedu Exp $ +.\" $OpenBSD: fgets.3,v 1.34 2016/08/27 16:39:42 schwarze Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -31,7 +31,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: November 4 2014 $ +.Dd $Mdocdate: August 27 2016 $ .Dt FGETS 3 .Os .Sh NAME @@ -113,7 +113,7 @@ or .Sh SEE ALSO .Xr feof 3 , .Xr ferror 3 , -.Xr fgetln 3 +.Xr getline 3 .Sh STANDARDS The function .Fn fgets @@ -167,7 +167,7 @@ which may indeed include a newline. .El .Pp Consider using -.Xr fgetln 3 +.Xr getline 3 instead when dealing with untrusted input. .Pp It is erroneous to assume that |