diff options
| author | Po Lu | 2022-03-22 16:26:11 +0800 |
|---|---|---|
| committer | Po Lu | 2022-03-22 16:27:23 +0800 |
| commit | b10dcd0c8899dd66a07c8935ad5e16d8ebb2e32e (patch) | |
| tree | 71c8dc21fbfbe00ddf0654c1224d023f0647b719 /src | |
| parent | 15ac51e0fd385130a0764481290d04a71aad5e88 (diff) | |
| download | emacs-b10dcd0c8899dd66a07c8935ad5e16d8ebb2e32e.tar.gz emacs-b10dcd0c8899dd66a07c8935ad5e16d8ebb2e32e.zip | |
* src/xterm.c (x_dnd_get_window_proto): Don't return huge protocols.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index be1dc9e3c98..a7d84455024 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) | |||
| 1020 | value = (int) *(Atom *) tmp_data; | 1020 | value = (int) *(Atom *) tmp_data; |
| 1021 | XFree (tmp_data); | 1021 | XFree (tmp_data); |
| 1022 | 1022 | ||
| 1023 | return (int) value; | 1023 | return min (X_DND_SUPPORTED_VERSION, (int) value); |
| 1024 | } | 1024 | } |
| 1025 | 1025 | ||
| 1026 | static void | 1026 | static void |