summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fgetln.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fgetln.c b/src/fgetln.c
index 9f2a584..e59028b 100644
--- a/src/fgetln.c
+++ b/src/fgetln.c
@@ -34,15 +34,15 @@
char *
fgetln (FILE *stream, size_t *len)
{
- char *line=NULL;
+ char *line = NULL;
ssize_t nread;
nread = getline (&line, len, stream);
if (nread == -1)
return NULL;
- (*len)--; /* get rid of the trailing \0, fgetln
- does not have it */
+ /* Get rid of the trailing \0, fgetln does not have it. */
+ (*len)--;
return line;
}