diff options
Diffstat (limited to 'generic/tkImgBmap.c')
-rw-r--r-- | generic/tkImgBmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkImgBmap.c b/generic/tkImgBmap.c index bbc471e..35a4d0b 100644 --- a/generic/tkImgBmap.c +++ b/generic/tkImgBmap.c @@ -764,8 +764,8 @@ ImgBmapCmd( Tcl_WrongNumArgs(interp, 1, objv, "option ?arg ...?"); return TCL_ERROR; } - if (Tcl_GetIndexFromObj(interp, objv[1], bmapOptions, "option", 0, - &index) != TCL_OK) { + if (Tcl_GetIndexFromObjStruct(interp, objv[1], bmapOptions, + sizeof(char), "option", 0, &index) != TCL_OK) { return TCL_ERROR; } switch (index) { |