summaryrefslogtreecommitdiffstats
path: root/generic/tkSquare.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tkSquare.c')
-rw-r--r--generic/tkSquare.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkSquare.c b/generic/tkSquare.c
index 787630d..ad1506c 100644
--- a/generic/tkSquare.c
+++ b/generic/tkSquare.c
@@ -237,8 +237,8 @@ SquareWidgetObjCmd(
return TCL_ERROR;
}
- if (Tcl_GetIndexFromObj(interp, objv[1], squareOptions, "command",
- 0, &index) != TCL_OK) {
+ if (Tcl_GetIndexFromObjStruct(interp, objv[1], squareOptions,
+ sizeof(char *), "command", 0, &index) != TCL_OK) {
return TCL_ERROR;
}