소스 검색

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 {