summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/line.c
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2010-05-15 01:55:00 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2010-05-15 01:55:00 +0000
commitff95b300f8204c215384425032124f206349bca2 (patch)
treeabdb4fced025cb35b974f9f0ba0c7d6c9fd01094 /Build/source/texk/kpathsea/line.c
parent64252d2baf23bb55ca90c388215779740c73e695 (diff)
remove trailing spaces.
git-svn-id: svn://tug.org/texlive/trunk@18276 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/line.c')
-rw-r--r--Build/source/texk/kpathsea/line.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/kpathsea/line.c b/Build/source/texk/kpathsea/line.c
index 04d193a8d91..b1edb16f02d 100644
--- a/Build/source/texk/kpathsea/line.c
+++ b/Build/source/texk/kpathsea/line.c
@@ -29,11 +29,11 @@ read_line (FILE*f)
unsigned limit = BLOCK_SIZE;
unsigned loc = 0;
char *line = (char*)xmalloc(limit);
-
+
while ((c = getc (f)) != EOF && c != '\n' && c != '\r') {
line[loc] = c;
loc++;
-
+
/* By testing after the assignment, we guarantee that we'll always
have space for the null we append below. We know we always
have room for the first char, since we start with BLOCK_SIZE. */
@@ -42,7 +42,7 @@ read_line (FILE*f)
line = (char*)xrealloc(line, limit);
}
}
-
+
/* If we read anything, return it. This can't represent a last
``line'' which doesn't end in a newline, but so what. */
if (c != EOF) {
@@ -59,7 +59,7 @@ read_line (FILE*f)
free(line);
line = NULL;
}
-
+
return line;
}