Check-in [00f11c761d]
Not logged in

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

Overview
Comment:add tk upstream changes
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 00f11c761d5b2e306c7e8743b56cdedc0899483a
User & Date: chw 2020-02-10 14:14:52
Context
2020-02-11
05:58
add ooxml upstream changes check-in: 5c87ffa53c user: chw tags: trunk
2020-02-10
14:18
merge with trunk check-in: 6b571b71c1 user: chw tags: wtf-8-experiment
14:14
add tk upstream changes check-in: 00f11c761d user: chw tags: trunk
10:28
tweak rl_json for Win32 builds check-in: 428dbafaa6 user: chw tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to jni/sdl2tk/generic/tkClipboard.c.

141
142
143
144
145
146
147
148
149
150
151

152
153
154
155
156
157
158
    p = dispPtr->clipboardAppPtr->winPtr->nameUid;
    length = strlen(p);
    length -= offset;
    if (length <= 0) {
	return 0;
    }
    if (length > (size_t) maxBytes) {
	memcpy(buffer, p, maxBytes);
	return (int)maxBytes;
    }
    strcpy(buffer, p);

    return (int)length;
}
 
/*
 *----------------------------------------------------------------------
 *
 * ClipboardWindowHandler --







<
|

|
>







141
142
143
144
145
146
147

148
149
150
151
152
153
154
155
156
157
158
    p = dispPtr->clipboardAppPtr->winPtr->nameUid;
    length = strlen(p);
    length -= offset;
    if (length <= 0) {
	return 0;
    }
    if (length > (size_t) maxBytes) {

	length = maxBytes;
    }
    memcpy(buffer, p, length);
    buffer[length] = 0;
    return (int)length;
}
 
/*
 *----------------------------------------------------------------------
 *
 * ClipboardWindowHandler --