tAvoid buffer overrun in bpress() - st - [fork] customized build of st, the sim… | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 0f6942cdf6f8220f1ecd06e4b398e95c43833d44 | |
parent 8e577322a3a55abf2f8226218ec87a7eec7fc3b1 | |
Author: Mark Edgar <[email protected]> | |
Date: Sun, 6 Oct 2013 12:19:12 +0200 | |
Avoid buffer overrun in bpress() | |
Use correct type for Mousekey.b (XButtonEvent.button). | |
Diffstat: | |
M st.c | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/st.c b/st.c | |
t@@ -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 { |