diff options
author | Mark Edgar <medgar123@gmail.com> | 2013-10-06 12:19:12 +0200 |
---|---|---|
committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2013-10-15 17:46:17 +0200 |
commit | 0f6942cdf6f8220f1ecd06e4b398e95c43833d44 (patch) | |
tree | ea43cdbb4c76b36a2d57abc50d5df35331f53c89 | |
parent | 8e577322a3a55abf2f8226218ec87a7eec7fc3b1 (diff) | |
download | st-patched-0f6942cdf6f8220f1ecd06e4b398e95c43833d44.tar.bz2 st-patched-0f6942cdf6f8220f1ecd06e4b398e95c43833d44.tar.xz st-patched-0f6942cdf6f8220f1ecd06e4b398e95c43833d44.zip |
Avoid buffer overrun in bpress()
Use correct type for Mousekey.b (XButtonEvent.button).
-rw-r--r-- | st.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -256,9 +256,9 @@ typedef struct { | |||
256 | } XWindow; | 256 | } XWindow; |
257 | 257 | ||
258 | typedef struct { | 258 | typedef struct { |
259 | int b; | 259 | uint b; |
260 | uint mask; | 260 | uint mask; |
261 | char s[ESC_BUF_SIZ]; | 261 | char *s; |
262 | } Mousekey; | 262 | } Mousekey; |
263 | 263 | ||
264 | typedef struct { | 264 | typedef struct { |