]> git.armaanb.net Git - st.git/commitdiff
Avoid buffer overrun in bpress()
authorMark Edgar <medgar123@gmail.com>
Sun, 6 Oct 2013 10:19:12 +0000 (12:19 +0200)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Tue, 15 Oct 2013 15:46:17 +0000 (17:46 +0200)
Use correct type for Mousekey.b (XButtonEvent.button).

st.c

diff --git a/st.c b/st.c
index 9df6707c1b7e4884eb57b96a720804b194db46fd..50b58a77e4080a65c3fb30ce4ac61ff5da1f39c0 100644 (file)
--- a/st.c
+++ b/st.c
@@ -256,9 +256,9 @@ typedef struct {
 } XWindow;
 
 typedef struct {
-       int b;
+       uint b;
        uint mask;
-       char s[ESC_BUF_SIZ];
+       char *s;
 } Mousekey;
 
 typedef struct {