summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Edgar2013-10-06 12:19:12 +0200
committerRoberto E. Vargas Caballero2013-10-15 17:46:17 +0200
commit0f6942cdf6f8220f1ecd06e4b398e95c43833d44 (patch)
treeea43cdbb4c76b36a2d57abc50d5df35331f53c89
parent8e577322a3a55abf2f8226218ec87a7eec7fc3b1 (diff)
downloadst-0f6942cdf6f8220f1ecd06e4b398e95c43833d44.tar.gz
st-0f6942cdf6f8220f1ecd06e4b398e95c43833d44.tar.xz
st-0f6942cdf6f8220f1ecd06e4b398e95c43833d44.zip
Avoid buffer overrun in bpress()
Use correct type for Mousekey.b (XButtonEvent.button).
-rw-r--r--st.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/st.c b/st.c
index 9df6707..50b58a7 100644
--- 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 {