Tk Source Code

Check-in [89cf5e33]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix broken build (one line of the patch for [382712ade6] was missing)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core-8-6-branch
Files: files | file ages | folders
SHA3-256: 89cf5e33aebc3a5652bdbf316e8279b44320c63907301b84a4717df82b7cde06
User & Date: fvogel 2018-01-18 14:23:37
Context
2018-01-19
20:39
Fix [657c389120] and [b4214b4712]: Segfault when destroying menu with checkbutton entry check-in: 005c6b29 user: fvogel tags: core-8-6-branch
2018-01-18
14:23
Fix broken build (one line of the patch for [382712ade6] was missing) check-in: 1e73f2c5 user: fvogel tags: trunk
14:23
Fix broken build (one line of the patch for [382712ade6] was missing) check-in: 89cf5e33 user: fvogel tags: core-8-6-branch
14:23
Fix broken build (one line of the patch was missing) check-in: 8038fd23 user: fvogel tags: bug-382712ade6
2018-01-16
19:48
Fix [382712ade6]: X11: 'event generate . <KeyPress>' segfaults. Patch from Christian Werner. check-in: a0f74682 user: fvogel tags: core-8-6-branch
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to unix/tkUnixKey.c.

239
240
241
242
243
244
245

246
247
248
249
250
251
252

    /*
     * Cache the string in the event so that if/when we return to this
     * function, we will be able to produce it without asking X. This stops us
     * from having to reenter the XIM engine. [Bug 1373712]
     */


    kePtr->charValuePtr = ckalloc(len + 1);
    kePtr->charValueLen = len;
    memcpy(kePtr->charValuePtr, Tcl_DStringValue(dsPtr), (unsigned) len + 1);
    return Tcl_DStringValue(dsPtr);
}

/*







>







239
240
241
242
243
244
245
246
247
248
249
250
251
252
253

    /*
     * Cache the string in the event so that if/when we return to this
     * function, we will be able to produce it without asking X. This stops us
     * from having to reenter the XIM engine. [Bug 1373712]
     */

done:
    kePtr->charValuePtr = ckalloc(len + 1);
    kePtr->charValueLen = len;
    memcpy(kePtr->charValuePtr, Tcl_DStringValue(dsPtr), (unsigned) len + 1);
    return Tcl_DStringValue(dsPtr);
}

/*