summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/make/parse.c')
-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 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] != '.');
OpenPOWER on IntegriCloud