diff options
author | steve <steve@FreeBSD.org> | 1996-09-23 17:21:34 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1996-09-23 17:21:34 +0000 |
commit | 9b222d6b6a7a012d82d5e1598ecd59109975874b (patch) | |
tree | 63d64d5f5e03205e7b4c2673df6805d29604e23a | |
parent | 0f0cfd5fc9eb2bd938f1e041cc067764774e46d0 (diff) | |
download | FreeBSD-src-9b222d6b6a7a012d82d5e1598ecd59109975874b.zip FreeBSD-src-9b222d6b6a7a012d82d5e1598ecd59109975874b.tar.gz |
Be sure to remove any newlines encountered when
parsing the input file in ParseSkipLine(...).
-rw-r--r-- | usr.bin/make/parse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c index 4e06ce4..3bd2475 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] != '.'); |