diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2019-10-16 12:19:49 +0300 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2019-11-10 22:45:54 +0100 |
commit | 7ceb3d1f72eabfa678e5cfae176c57630ad98c43 (patch) | |
tree | da9a6a0aa783b17ce0fa62891210ab36015e51d5 /x.c | |
parent | ea4d933ed9d8ce16699c84892a29e070c70b2eb9 (diff) |
STREscape: don't trim prematurely
STRescape holds strings in escape sequences such as OSC and DCS, and
its buffer is 512 bytes.
If the input is too big then trailing chars are ignored, but the test
was off-by-1 such that it took 510 chars instead of 511 (before a
terminating NULL is added).
Now the full size can be utilized.
Diffstat (limited to 'x.c')
0 files changed, 0 insertions, 0 deletions