This commit is contained in:
Nikita Ivanov 2022-06-11 13:20:18 +05:00
parent 4ff1c04c80
commit 6b5b6bc91c
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133

View File

@ -79,7 +79,7 @@ static int peekn_char(Lexer *ctx, unsigned int i)
memmove(b->buf, b->buf + (b->len - i), i * sizeof(*b->buf));
}
b->len = fread(b->buf + i, sizeof(*b->buf), LEN(b->buf) - i, b->f);
b->len = i + fread(b->buf + i, sizeof(*b->buf), LEN(b->buf) - i, b->f);
b->pos = 0;
if (b->len != LEN(b->buf)) {