projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d0148c
)
Fix crashes when the _EMACS_DRAG_ATOM is the wrong type
author
Po Lu
<luangruo@yahoo.com>
Sun, 19 Jun 2022 05:32:27 +0000
(13:32 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Sun, 19 Jun 2022 05:32:36 +0000
(13:32 +0800)
* src/xterm.c (xm_get_drag_atom_1): Don't use PropModeAppend if
rc != Success.
src/xterm.c
patch
|
blob
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index d83a56a6cba2be57a2a1facd719824dd3b6328af..455d5b795e9b968cf9c396c7936ffcc4fb41ac6d 100644
(file)
--- a/
src/xterm.c
+++ b/
src/xterm.c
@@
-2299,8
+2299,9
@@
xm_get_drag_atom_1 (struct x_display_info *dpyinfo,
XChangeProperty (dpyinfo->display, dpyinfo->root_window,
dpyinfo->Xatom_EMACS_DRAG_ATOM, XA_ATOM, 32,
- (rc == Success && (actual_format != 32
- || actual_type != XA_ATOM)
+ (rc != Success
+ || (actual_format != 32
+ || actual_type != XA_ATOM)
? PropModeReplace : PropModeAppend),
(unsigned char *) &atom, 1);