mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
dcs: DECRQSS: fix off-by-one when checking for space in the DCS buffer
This commit is contained in:
parent
09e45794bc
commit
9287946b36
2 changed files with 3 additions and 1 deletions
2
dcs.c
2
dcs.c
|
|
@ -239,7 +239,7 @@ decrqss_put(struct terminal *term, uint8_t c)
|
|||
return;
|
||||
|
||||
struct vt *vt = &term->vt;
|
||||
if (vt->dcs.idx > 2)
|
||||
if (vt->dcs.idx >= 2)
|
||||
return;
|
||||
vt->dcs.data[vt->dcs.idx++] = c;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue