summaryrefslogtreecommitdiffstats
path: root/generic/tkPlace.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-05-17 15:54:30 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-05-17 15:54:30 (GMT)
commit249b7853b5d451f99eaebabfc0288176269bf6ba (patch)
tree8f8a87c5748b2877b838a44d70ea70857162cec0 /generic/tkPlace.c
parent4e04d8c4e5426b6166e7100e72ab3e01b5e71af1 (diff)
parent95e98deaabd9c51b05dc59b6129973ed6bbbf983 (diff)
downloadtk-249b7853b5d451f99eaebabfc0288176269bf6ba.zip
tk-249b7853b5d451f99eaebabfc0288176269bf6ba.tar.gz
tk-249b7853b5d451f99eaebabfc0288176269bf6ba.tar.bz2
Merge 8.6
Diffstat (limited to 'generic/tkPlace.c')
-rw-r--r--generic/tkPlace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkPlace.c b/generic/tkPlace.c
index cde51a7..d61045e 100644
--- a/generic/tkPlace.c
+++ b/generic/tkPlace.c
@@ -263,8 +263,8 @@ Tk_PlaceObjCmd(
dispPtr->placeInit = 1;
}
- if (Tcl_GetIndexFromObjStruct(interp, objv[1], optionStrings,
- sizeof(char *), "option", 0, &index) != TCL_OK) {
+ if (Tcl_GetIndexFromObj(interp, objv[1], optionStrings,
+ "option", 0, &index) != TCL_OK) {
/*
* Call it again without the deprecated ones to get a proper error
* message. This works well since there can't be any ambiguity between