STREscape: don't trim prematurely
authorAvi Halachmi (:avih) <avihpit@yahoo.com>
Wed, 16 Oct 2019 09:19:49 +0000 (12:19 +0300)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Sun, 10 Nov 2019 21:45:54 +0000 (22:45 +0100)
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.


No differences found