summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXHLEvents.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2020-08-28 01:32:48 (GMT)
committerKevin Walzer <kw@codebykevin.com>2020-08-28 01:32:48 (GMT)
commit029438fb7c249102b37dd5607be4e7080aad658c (patch)
treed421d06106beb36c4fa36394c0189473f4b8199c /macosx/tkMacOSXHLEvents.c
parentdb647f131b9e08474b8453e88ef2d49d5c69cdb1 (diff)
parent79cce61253647cf934c292ae7c32c133c4cff51e (diff)
downloadtk-029438fb7c249102b37dd5607be4e7080aad658c.zip
tk-029438fb7c249102b37dd5607be4e7080aad658c.tar.gz
tk-029438fb7c249102b37dd5607be4e7080aad658c.tar.bz2
Merge doscript_goof branch; thanks to Lars Hellstrom for patches
Diffstat (limited to 'macosx/tkMacOSXHLEvents.c')
-rw-r--r--macosx/tkMacOSXHLEvents.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/macosx/tkMacOSXHLEvents.c b/macosx/tkMacOSXHLEvents.c
index 3b65681..92551bd 100644
--- a/macosx/tkMacOSXHLEvents.c
+++ b/macosx/tkMacOSXHLEvents.c
@@ -325,6 +325,7 @@ static const char* scriptTextProc = "::tk::mac::DoScriptText";
if (noErr == AEGetParamPtr(theDesc, keyDirectObject,
typeUTF8Text, &type,
data, actual, NULL)) {
+ data[actual] = '\0';
AppleEventInfo *AEInfo = (AppleEventInfo *)ckalloc(sizeof(AppleEventInfo));
Tcl_DString *scriptTextCommand = &AEInfo->command;
Tcl_DStringInit(scriptTextCommand);