diff options
| author | Steve Price <steve@FreeBSD.org> | 1996-09-23 17:21:34 +0000 |
|---|---|---|
| committer | Steve Price <steve@FreeBSD.org> | 1996-09-23 17:21:34 +0000 |
| commit | 0e0e0239f02e9a8d4d35e9a86af59ce15c36f9f8 (patch) | |
| tree | 63d64d5f5e03205e7b4c2673df6805d29604e23a /usr.bin/make/parse.c | |
| parent | 08eb1b8719fcf7d3c40b84a8e943383b39864c70 (diff) | |
Notes
Diffstat (limited to 'usr.bin/make/parse.c')
| -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 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] != '.'); |
