mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-07 08:21:02 -04:00
dcs: don’t automatically buffer anything
If a request handler doesn’t define its own put() handler, simply drop all DCS parameter data. This way, we won’t end up allocating potentially large buffers for unsupported/unimplemented DCS requests. Closes #959
This commit is contained in:
parent
67a228bf4b
commit
de5226c930
1 changed files with 0 additions and 5 deletions
5
dcs.c
5
dcs.c
|
|
@ -475,11 +475,6 @@ dcs_put(struct terminal *term, uint8_t c)
|
||||||
|
|
||||||
if (term->vt.dcs.put_handler != NULL)
|
if (term->vt.dcs.put_handler != NULL)
|
||||||
term->vt.dcs.put_handler(term, c);
|
term->vt.dcs.put_handler(term, c);
|
||||||
else {
|
|
||||||
if (!ensure_size(term, term->vt.dcs.idx + 1))
|
|
||||||
return;
|
|
||||||
term->vt.dcs.data[term->vt.dcs.idx++] = c;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue