diff options
author | rsc <devnull@localhost> | 2007-05-04 02:19:18 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2007-05-04 02:19:18 +0000 |
commit | 4b3989fd41c51d8a464136012da2d08cba388e80 (patch) | |
tree | bed65d229d77b84cedcbc9b46416e82d56b91e1b | |
parent | 7c809320cadf39a2dcaba904b9ee6a67d58f9427 (diff) | |
download | plan9port-4b3989fd41c51d8a464136012da2d08cba388e80.tar.gz plan9port-4b3989fd41c51d8a464136012da2d08cba388e80.tar.bz2 plan9port-4b3989fd41c51d8a464136012da2d08cba388e80.zip |
report target list as 32-bit chunks, not 8-bit, for OS X
-rw-r--r-- | src/cmd/devdraw/x11-itrans.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/devdraw/x11-itrans.c b/src/cmd/devdraw/x11-itrans.c index 41c54ec2..c0e3194f 100644 --- a/src/cmd/devdraw/x11-itrans.c +++ b/src/cmd/devdraw/x11-itrans.c @@ -528,7 +528,7 @@ if(0) fprint(2, "xselect target=%d requestor=%d property=%d selection=%d\n", a[3] = _x.compoundtext; XChangeProperty(_x.display, xe->requestor, xe->property, xe->target, - 8, PropModeReplace, (uchar*)a, sizeof a); + 8*sizeof(a[0]), PropModeReplace, (uchar*)a, nelem(a)); }else if(xe->target == XA_STRING || xe->target == _x.utf8string || xe->target == _x.text |