projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3939a72
)
Fix byte swapping of some drag-and-drop messages
author
Po Lu
<luangruo@yahoo.com>
Tue, 17 May 2022 01:10:46 +0000
(09:10 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Tue, 17 May 2022 01:10:46 +0000
(09:10 +0800)
* src/xterm.c (SWAPCARD16, SWAPCARD32): Actually swap the data
instead of just calling bswap_32/bswap_16.
src/xterm.c
patch
|
blob
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index aa6cdc5d6e55cf37748ec637683efc0f712e152c..181b6c2ec3b6e64a4bb7f96f342b024ad104a91a 100644
(file)
--- a/
src/xterm.c
+++ b/
src/xterm.c
@@
-1082,8
+1082,8
@@
typedef enum xm_byte_order
}
#else
-#define SWAPCARD32(l)
bswap_32 (l
)
-#define SWAPCARD16(l)
bswap_16 (l
)
+#define SWAPCARD32(l)
((l) = bswap_32 (l)
)
+#define SWAPCARD16(l)
((l) = bswap_16 (l)
)
#endif
typedef struct xm_targets_table_header