summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvLine.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tkCanvLine.c')
-rw-r--r--generic/tkCanvLine.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/tkCanvLine.c b/generic/tkCanvLine.c
index 328d184..59c936e 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.5 1999/12/14 06:52:26 hobbs Exp $
+ * RCS: @(#) $Id: tkCanvLine.c,v 1.6 2000/01/21 03:54:41 hobbs Exp $
*/
#include <stdio.h>
@@ -416,6 +416,11 @@ LineCoords(interp, canvas, itemPtr, argc, argv)
"odd number of coordinates specified for line",
(char *) NULL);
return TCL_ERROR;
+ } else if (argc < 4) {
+ Tcl_AppendResult(interp,
+ "too few coordinates specified for line",
+ (char *) NULL);
+ return TCL_ERROR;
} else {
numPoints = argc/2;
if (linePtr->numPoints != numPoints) {