mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-09 14:07:34 +02:00
Limit iteration in Cyc_io_peek_char
This commit is contained in:
parent
9cfb80677a
commit
1e8819d57e
1 changed files with 1 additions and 1 deletions
|
@ -6375,7 +6375,7 @@ object Cyc_io_peek_char(void *data, object cont, object port)
|
||||||
|
|
||||||
buf[0] = c;
|
buf[0] = c;
|
||||||
i = 1;
|
i = 1;
|
||||||
while (1) { // TODO: limit to 4 chars??
|
while (i < 5) { // TODO: limit to 4 chars??
|
||||||
if (p->mem_buf_len == p->buf_idx + i) {
|
if (p->mem_buf_len == p->buf_idx + i) {
|
||||||
// No more buffered chars
|
// No more buffered chars
|
||||||
at_mem_buf_end = 1;
|
at_mem_buf_end = 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue