treport target list as 32-bit chunks, not 8-bit, for OS X - plan9port - [fork] Plan 9 from user space (HTM) git clone git://src.adamsgaard.dk/plan9port (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 4b3989fd41c51d8a464136012da2d08cba388e80 (DIR) parent 7c809320cadf39a2dcaba904b9ee6a67d58f9427 (HTM) Author: rsc <devnull@localhost> Date: Fri, 4 May 2007 02:19:18 +0000 report target list as 32-bit chunks, not 8-bit, for OS X Diffstat: M src/cmd/devdraw/x11-itrans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- (DIR) diff --git a/src/cmd/devdraw/x11-itrans.c b/src/cmd/devdraw/x11-itrans.c t@@ -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