diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-05-08 11:20:54 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-05-08 11:20:54 (GMT) |
commit | 59cf5166975a2cc54446f9b0b6cc8380612a7c10 (patch) | |
tree | f9fabdba09b2efd8fa849595ba52afd4b43194a4 /generic/tkSelect.c | |
parent | ede0a81a5be7e24337fea064fcbc6b0d0af806f9 (diff) | |
parent | c0c63d71f6326616741160c579c69136b6010dd8 (diff) | |
download | tk-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.c | 4 |
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); |