[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master b10dcd0c88: * src/xterm.c (x_dnd_get_window_proto): Don't return
From: |
Po Lu |
Subject: |
master b10dcd0c88: * src/xterm.c (x_dnd_get_window_proto): Don't return huge protocols. |
Date: |
Tue, 22 Mar 2022 04:27:34 -0400 (EDT) |
branch: master
commit b10dcd0c8899dd66a07c8935ad5e16d8ebb2e32e
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
* src/xterm.c (x_dnd_get_window_proto): Don't return huge protocols.
---
src/xterm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xterm.c b/src/xterm.c
index be1dc9e3c9..a7d8445502 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1020,7 +1020,7 @@ x_dnd_get_window_proto (struct x_display_info *dpyinfo,
Window wdesc)
value = (int) *(Atom *) tmp_data;
XFree (tmp_data);
- return (int) value;
+ return min (X_DND_SUPPORTED_VERSION, (int) value);
}
static void
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master b10dcd0c88: * src/xterm.c (x_dnd_get_window_proto): Don't return huge protocols.,
Po Lu <=