mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-24 13:53:07 +01:00
Fix
This commit is contained in:
parent
4ff1c04c80
commit
6b5b6bc91c
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user