summaryrefslogtreecommitdiffstats
path: root/generic/tkButton.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tkButton.c')
-rw-r--r--generic/tkButton.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkButton.c b/generic/tkButton.c
index 94a904d..30d8ae9 100644
--- a/generic/tkButton.c
+++ b/generic/tkButton.c
@@ -798,7 +798,7 @@ ButtonWidgetObjCmd(
return TCL_ERROR;
}
result = Tcl_GetIndexFromObjStruct(interp, objv[1], commandNames[butPtr->type],
- sizeof(char), "option", 0, &index);
+ sizeof(char *), "option", 0, &index);
if (result != TCL_OK) {
return result;
}