summaryrefslogtreecommitdiffstats
path: root/generic/tkSelect.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-05-08 11:20:54 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-05-08 11:20:54 (GMT)
commit59cf5166975a2cc54446f9b0b6cc8380612a7c10 (patch)
treef9fabdba09b2efd8fa849595ba52afd4b43194a4 /generic/tkSelect.c
parentede0a81a5be7e24337fea064fcbc6b0d0af806f9 (diff)
parentc0c63d71f6326616741160c579c69136b6010dd8 (diff)
downloadtk-59cf5166975a2cc54446f9b0b6cc8380612a7c10.zip
tk-59cf5166975a2cc54446f9b0b6cc8380612a7c10.tar.gz
tk-59cf5166975a2cc54446f9b0b6cc8380612a7c10.tar.bz2
merge core-8-6-branch
Diffstat (limited to 'generic/tkSelect.c')
-rw-r--r--generic/tkSelect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkSelect.c b/generic/tkSelect.c
index 74b3964..4c3bbfd 100644
--- a/generic/tkSelect.c
+++ b/generic/tkSelect.c
@@ -190,8 +190,8 @@ Tk_CreateSelHandler(
* should make a copy for this selPtr.
*/
- unsigned cmdInfoLen = Tk_Offset(CommandInfo, command) +
- ((CommandInfo *)clientData)->cmdLength + 1;
+ unsigned cmdInfoLen = Tk_Offset(CommandInfo, command) + 1 +
+ ((CommandInfo *)clientData)->cmdLength;
selPtr->clientData = ckalloc(cmdInfoLen);
memcpy(selPtr->clientData, clientData, cmdInfoLen);