I'm going to apply it, but with this small change:
- csiescseq.mode[1] = *p;
+ csiescseq.mode[1] = (p < csiescseq.buf+csiescseq.len) ? *p : '\0';
because my suggestion was not totally true, and it was possible
go further of the end of the string.
Regards,
---
st.c | 62 +-
1 file changed, 49 insertions(+), 13 deletions(-)
diff --git a/st.c b/st.c
index 836ae21..b4736d8 100644
--- a/st.c
+++ b/st.c
@@ -197,14 +197,14 @@ typedef struct {
} TCursor;
/* CSI Escape sequence structs */
-/*
---
st.c | 62 +-
1 file changed, 49 insertions(+), 13 deletions(-)
diff --git a/st.c b/st.c
index 836ae21..b4736d8 100644
--- a/st.c
+++ b/st.c
@@ -197,14 +197,14 @@ typedef struct {
} TCursor;
/* CSI Escape sequence structs */
-/*