summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvPoly.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-02-01 15:49:33 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-02-01 15:49:33 (GMT)
commit6c9d67ac2ce6b610bb42688c03d6abf8e99f2a6b (patch)
treee0af1794b6829d3f838125af8b8c1f94632a35fc /generic/tkCanvPoly.c
parent88df780305133662dbb17971c05b9663a2b69f9d (diff)
downloadtk-6c9d67ac2ce6b610bb42688c03d6abf8e99f2a6b.zip
tk-6c9d67ac2ce6b610bb42688c03d6abf8e99f2a6b.tar.gz
tk-6c9d67ac2ce6b610bb42688c03d6abf8e99f2a6b.tar.bz2
some more int -> size_t changes
Diffstat (limited to 'generic/tkCanvPoly.c')
-rw-r--r--generic/tkCanvPoly.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/tkCanvPoly.c b/generic/tkCanvPoly.c
index f8ea42b..b4ef098 100644
--- a/generic/tkCanvPoly.c
+++ b/generic/tkCanvPoly.c
@@ -1673,11 +1673,10 @@ GetPolygonIndex(
int *indexPtr) /* Where to store converted index. */
{
PolygonItem *polyPtr = (PolygonItem *) itemPtr;
- int length;
- const char *string = Tcl_GetStringFromObj(obj, &length);
+ const char *string = Tcl_GetString(obj);
if (string[0] == 'e') {
- if (strncmp(string, "end", (unsigned)length) != 0) {
+ if (strncmp(string, "end", obj->length) != 0) {
goto badIndex;
}
*indexPtr = 2*(polyPtr->numPoints - polyPtr->autoClosed);