1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-26 13:17:40 +00:00

A few fixes to things like macro expand, etc.

This commit is contained in:
Calvin Rose
2018-11-07 22:27:06 -05:00
parent 853a839f6c
commit 2a127af1ca
7 changed files with 44 additions and 36 deletions

View File

@@ -465,7 +465,7 @@ void janet_line_get(const uint8_t *p, JanetBuffer *buffer) {
}
norawmode();
fputc('\n', stdout);
janet_buffer_ensure(buffer, len + 1);
janet_buffer_ensure(buffer, len + 1, 2);
memcpy(buffer->data, buf, len);
buffer->data[len] = '\n';
buffer->count = len + 1;