[hackers] [st][patch] Increase the buffer size for escape sequences

From: Ingo Heimbach <IJ_H_AT_gmx.de>
Date: Sun, 23 Sep 2018 12:12:27 +0200

Before this commit, long escape sequences (e.g. OSC 52) could be trimmed
due to a quite small escape sequence buffer. This commit increases the
escape sequence buffer from 128 to 1048576 UTF-8 characters.
---
  st.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/st.c b/st.c
index 46c954b..e9d4536 100644
--- a/st.c
+++ b/st.c
_AT_@ -31,7 +31,7 @@
  /* Arbitrary sizes */
  #define UTF_INVALID   0xFFFD
  #define UTF_SIZ       4
-#define ESC_BUF_SIZ   (128*UTF_SIZ)
+#define ESC_BUF_SIZ   (1048576*UTF_SIZ)
  #define ESC_ARG_SIZ   16
  #define STR_BUF_SIZ   ESC_BUF_SIZ
  #define STR_ARG_SIZ   ESC_ARG_SIZ
-- 
2.19.0
Received on Sun Sep 23 2018 - 12:12:27 CEST

This archive was generated by hypermail 2.3.0 : Sun Sep 23 2018 - 12:24:23 CEST