Skip to content

Commit

Permalink
Fix segfaults due to parameter size mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson authored and chrstphrchvz committed May 12, 2019
1 parent c1dbad2 commit dff2e5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pTk/mTk/generic/tkCanvText.c
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ GetTextIndex(interp, canvas, itemPtr, obj, indexPtr)
* index. */
{
TextItem *textPtr = (TextItem *) itemPtr;
size_t length;
int length;
int c;
TkCanvas *canvasPtr = (TkCanvas *) canvas;
Tk_CanvasTextInfo *textInfoPtr = textPtr->textInfoPtr;
Expand Down
4 changes: 2 additions & 2 deletions pTk/mTk/generic/tkFrame.c
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ CreateFrame(clientData, interp, objc, objv, type, appName)
Tcl_Obj *visualName;
Tcl_Obj *useOption;
int i, c, depth;
size_t length;
int length;
unsigned int mask;
Colormap colormap;
Visual *visual;
Expand Down Expand Up @@ -749,7 +749,7 @@ FrameWidgetObjCmd(clientData, interp, objc, objv)
};
register Frame *framePtr = (Frame *) clientData;
int result = TCL_OK, index;
size_t length;
int length;
int c, i;
Tcl_Obj *objPtr;

Expand Down

0 comments on commit dff2e5a

Please sign in to comment.