Browse Source

Avoid buffer overrun in bpress()

Use correct type for Mousekey.b (XButtonEvent.button).
Mark Edgar 11 years ago
parent
commit
0f6942cdf6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      st.c

+ 2 - 2
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 {