aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1996-09-23 17:21:34 +0000
committerSteve Price <steve@FreeBSD.org>1996-09-23 17:21:34 +0000
commit0e0e0239f02e9a8d4d35e9a86af59ce15c36f9f8 (patch)
tree63d64d5f5e03205e7b4c2673df6805d29604e23a /usr.bin
parent08eb1b8719fcf7d3c40b84a8e943383b39864c70 (diff)
downloadsrc-0e0e0239f02e9a8d4d35e9a86af59ce15c36f9f8.tar.gz
src-0e0e0239f02e9a8d4d35e9a86af59ce15c36f9f8.zip
Be sure to remove any newlines encountered when
parsing the input file in ParseSkipLine(...).
Notes
Notes: svn path=/head/; revision=18478
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/make/parse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c
index 4e06ce45b80c..3bd2475df2a2 100644
--- a/usr.bin/make/parse.c
+++ b/usr.bin/make/parse.c
@@ -2041,7 +2041,8 @@ ParseSkipLine(skip)
}
lineno++;
- Buf_AddByte(buf, (Byte)c);
+ if (c != '\n')
+ Buf_AddByte(buf, (Byte)'\0');
Buf_AddByte(buf, (Byte)'\0');
line = (char *)Buf_GetAll(buf, &lineLength);
} while (skip == 1 && line[0] != '.');