diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2024-04-10 03:44:33 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-04-10 03:44:33 +0000 |
| commit | 9287946b3672d21fabd70ba4aeebc5a63e6259f9 (patch) | |
| tree | a7a49e57cc4bfbee4b3c3924b0322379799411fb /dcs.c | |
| parent | themes: add dracula-iterm (diff) | |
dcs: DECRQSS: fix off-by-one when checking for space in the DCS buffer
Diffstat (limited to 'dcs.c')
| -rw-r--r-- | dcs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |
