summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libc/stdio/fgetln.34
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/fgetln.3 b/lib/libc/stdio/fgetln.3
index 430599bcda1..99c362f5e42 100644
--- a/lib/libc/stdio/fgetln.3
+++ b/lib/libc/stdio/fgetln.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: fgetln.3,v 1.12 2005/02/25 03:12:44 cloder Exp $
+.\" $OpenBSD: fgetln.3,v 1.13 2006/03/19 07:04:51 ray Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -134,7 +134,7 @@ temporary buffer:
buf[len - 1] = '\e0';
else {
/* EOF without EOL, copy and add the NUL */
- if ((lbuf = (char *)malloc(len + 1)) == NULL)
+ if ((lbuf = malloc(len + 1)) == NULL)
err(1, NULL);
memcpy(lbuf, buf, len);
lbuf[len] = '\e0';