From ff95b300f8204c215384425032124f206349bca2 Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Sat, 15 May 2010 01:55:00 +0000 Subject: remove trailing spaces. git-svn-id: svn://tug.org/texlive/trunk@18276 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/kpathsea/line.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Build/source/texk/kpathsea/line.c') 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; } -- cgit v1.2.3