JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
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 9df6707..50b58a7 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 {