On Thu, 17 Aug 2017 23:40:34 -0700, Suraj N. Kurapati wrote:
> On Tue, 15 Aug 2017 01:05:47 -0700, Suraj N. Kurapati wrote:
> > I'm using st master at 7f990328e4fec8dfaaad311cb8af2304b58c872e
> > where this OSC-52 payload is exceeding strescseq.buf's STR_BUF_SIZE
>
> The second patch expands strescseq.buf's length to support copying up
> to 131k base64 (or 43k plain text) characters via the OSC-52 payload.
Oops, I made a mistake in that second patch. The corrected version is
attached and available at
https://github.com/sunaku/.st/compare/OSC-52
STR_BUF_SIZ: 131k payload (43k text) for OSC-52
diff --git a/st.c b/st.c
index 7c7ddff..3f56e28 100644
--- a/st.c
+++ b/st.c
_AT_@ -48,7 +48,7 @@ char *argv0;
#define UTF_INVALID 0xFFFD
#define ESC_BUF_SIZ (128*UTF_SIZ)
#define ESC_ARG_SIZ 16
-#define STR_BUF_SIZ ESC_BUF_SIZ
+#define STR_BUF_SIZ (256*ESC_BUF_SIZ) /* OSC-52: 131k payload (43k text) */
#define STR_ARG_SIZ ESC_ARG_SIZ
/* macros */
Received on Sat Aug 19 2017 - 04:40:49 CEST