瀏覽代碼

Avoid buffer overrun in bpress()

Use correct type for Mousekey.b (XButtonEvent.button).
Mark Edgar 11 年之前
父節點
當前提交
0f6942cdf6
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      st.c

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