-.\" $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.
.\" 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
.Sh SEE ALSO
.Xr feof 3 ,
.Xr ferror 3 ,
-.Xr fgetln 3
+.Xr getline 3
.Sh STANDARDS
The function
.Fn fgets
.El
.Pp
Consider using
-.Xr fgetln 3
+.Xr getline 3
instead when dealing with untrusted input.
.Pp
It is erroneous to assume that