Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f68e8bd
)
ecere/gui/drivers/X: Fixed handling of SelectionRequest
author
Jerome St-Louis
<jerome@ecere.com>
Wed, 11 May 2016 04:05:18 +0000
(13:05 +0900)
committer
Jerome St-Louis
<jerome@ecere.com>
Sat, 2 Jul 2016 20:41:08 +0000
(16:41 -0400)
- Multiplication by sizeof(Atom) was unnecessary and causing reading passed allocated memory
ecere/src/gui/drivers/XInterface.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gui/drivers/XInterface.ec
b/ecere/src/gui/drivers/XInterface.ec
index
606d6af
..
8ae03a3
100644
(file)
--- a/
ecere/src/gui/drivers/XInterface.ec
+++ b/
ecere/src/gui/drivers/XInterface.ec
@@
-1947,7
+1947,7
@@
class XInterface : Interface
supportedTargets[2] = XA_STRING;
supportedTargets[3] = atoms[utf8_string];
XChangeProperty(xGlobalDisplay,req->requestor, req->_property,
- XA_ATOM,32,PropModeReplace, (byte *) supportedTargets, 4
*sizeof(Atom)
);
+ XA_ATOM,32,PropModeReplace, (byte *) supportedTargets, 4);
respond.xselection._property = req->_property;
delete supportedTargets;
}