summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-09-23 00:34:31 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-09-23 00:34:31 (GMT)
commit3d626bd65d08f71f02584942012773bd014c6acb (patch)
tree60e95087ade63e667029529d83fddd3e7c0edd06
parent4c8817bf9f61487faa3fd056e823b43f4b800b9d (diff)
downloadtcl-3d626bd65d08f71f02584942012773bd014c6acb.zip
tcl-3d626bd65d08f71f02584942012773bd014c6acb.tar.gz
tcl-3d626bd65d08f71f02584942012773bd014c6acb.tar.bz2
Corrected the base for the errorline calculation
-rw-r--r--generic/tclCompile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index 86602bd..f02b29d 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclCompile.c,v 1.73 2004/09/22 22:23:39 dgp Exp $
+ * RCS: @(#) $Id: tclCompile.c,v 1.74 2004/09/23 00:34:31 dgp Exp $
*/
#include "tclInt.h"
@@ -969,7 +969,7 @@ TclCompileScript(interp, script, numBytes, envPtr)
Tcl_ListObjAppendElement(NULL, returnCmd, errInfo);
- for (p = script; p != parse.commandStart; p++) {
+ for (p = envPtr->source; p != parse.commandStart; p++) {
if (*p == '\n') {
errorLine++;
}