From: Mark Edgar Date: Sun, 6 Oct 2013 10:19:12 +0000 (+0200) Subject: Avoid buffer overrun in bpress() X-Git-Url: https://jasonwoof.com/gitweb/?p=st.git;a=commitdiff_plain;h=0f6942cdf6f8220f1ecd06e4b398e95c43833d44 Avoid buffer overrun in bpress() Use correct type for Mousekey.b (XButtonEvent.button). --- 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 {