Oh, and let's do the same for Mousekey while we're at it.

     -Mark


Avoid buffer overrun in bpress().
Use correct type for Mousekey.b (XButtonEvent.button).

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

Reply via email to