From: Avi Halachmi (:avih) Date: Wed, 16 Oct 2019 09:19:49 +0000 (+0300) Subject: STREscape: don't trim prematurely X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=7ceb3d1f72eabfa678e5cfae176c57630ad98c43;hp=7ceb3d1f72eabfa678e5cfae176c57630ad98c43;p=st.git 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. ---