diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2005-08-11 12:17:08 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2005-08-11 12:17:08 (GMT) |
commit | ca386840903882fdad06ba311b9ac4afc4dd8e68 (patch) | |
tree | 6628dcb4bda2551aaf3158b37e00d36264d17744 /generic/tkCanvLine.c | |
parent | 57709ee6acbca8e552d04ba5dadb99f589ca5330 (diff) | |
download | tk-ca386840903882fdad06ba311b9ac4afc4dd8e68.zip tk-ca386840903882fdad06ba311b9ac4afc4dd8e68.tar.gz tk-ca386840903882fdad06ba311b9ac4afc4dd8e68.tar.bz2 |
Fix [Bug 1252702]
Diffstat (limited to 'generic/tkCanvLine.c')
-rw-r--r-- | generic/tkCanvLine.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkCanvLine.c b/generic/tkCanvLine.c index d8be008..e868ae6 100644 --- a/generic/tkCanvLine.c +++ b/generic/tkCanvLine.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkCanvLine.c,v 1.13 2003/02/09 07:48:22 hobbs Exp $ + * RCS: @(#) $Id: tkCanvLine.c,v 1.13.2.1 2005/08/11 12:17:09 dkf Exp $ */ #include <stdio.h> @@ -1729,11 +1729,11 @@ GetLineIndex(interp, canvas, itemPtr, obj, indexPtr) int *indexPtr; /* Where to store converted index. */ { LineItem *linePtr = (LineItem *) itemPtr; - size_t length; - char *string = Tcl_GetStringFromObj(obj, (int *) &length); + int length; + char *string = Tcl_GetStringFromObj(obj, &length); if (string[0] == 'e') { - if (strncmp(string, "end", length) == 0) { + if (strncmp(string, "end", (unsigned) length) == 0) { *indexPtr = 2*linePtr->numPoints; } else { badIndex: |