summaryrefslogtreecommitdiffstats
path: root/win/tkWinDialog.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-06-21 13:23:24 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-06-21 13:23:24 (GMT)
commit779f43bf68b8ce10b9356a7ac83916707c4a780b (patch)
treea7101ed91dc87cbd995b59884dbce023bb66e386 /win/tkWinDialog.c
parentf8f745fe34d10d25ff1fe4e0935e042b5347004c (diff)
downloadtk-779f43bf68b8ce10b9356a7ac83916707c4a780b.zip
tk-779f43bf68b8ce10b9356a7ac83916707c4a780b.tar.gz
tk-779f43bf68b8ce10b9356a7ac83916707c4a780b.tar.bz2
Make better use of full range for string lengths, if Tk is compiled with Tcl 9.0 headers.
Diffstat (limited to 'win/tkWinDialog.c')
-rw-r--r--win/tkWinDialog.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c
index dfcc744..a3b6e34 100644
--- a/win/tkWinDialog.c
+++ b/win/tkWinDialog.c
@@ -2107,13 +2107,12 @@ MakeFilter(
*p = '\0';
} else {
- size_t len;
+ TkSizeT len;
if (valuePtr == NULL) {
len = 0;
} else {
- (void) Tcl_GetString(valuePtr);
- len = valuePtr->length;
+ (void) TkGetStringFromObj(valuePtr, &len);
}
/*