summaryrefslogtreecommitdiffstats
path: root/win/tkWinScrlbr.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-11 11:48:38 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-11 11:48:38 (GMT)
commitcfce00e636e389f48c32d61c5483a913a0a9d656 (patch)
treec9a801ef36f2cf95b58dcb55dd72e10ecfe02f67 /win/tkWinScrlbr.c
parent6b32cafc8e54ed1a7bee854a77191c18186d905e (diff)
parentfa87897c16b0dc6d903c1be0dc80389d9cd072e3 (diff)
downloadtk-cfce00e636e389f48c32d61c5483a913a0a9d656.zip
tk-cfce00e636e389f48c32d61c5483a913a0a9d656.tar.gz
tk-cfce00e636e389f48c32d61c5483a913a0a9d656.tar.bz2
Eliminate all usage of deprecated Tcl_EvalObj, Tcl_GlobalEval and Tcl_GlobalEvalObj functions.
Add [file normalize] to pkgIndex.tcl, in order to prevent '..' in file paths.
Diffstat (limited to 'win/tkWinScrlbr.c')
-rw-r--r--win/tkWinScrlbr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tkWinScrlbr.c b/win/tkWinScrlbr.c
index 1fd5e13..a280626 100644
--- a/win/tkWinScrlbr.c
+++ b/win/tkWinScrlbr.c
@@ -552,7 +552,7 @@ ScrollbarProc(
}
interp = scrollPtr->info.interp;
- code = Tcl_GlobalEval(interp, cmdString.string);
+ code = Tcl_EvalEx(interp, cmdString.string, -1, TCL_EVAL_GLOBAL);
if (code != TCL_OK && code != TCL_CONTINUE && code != TCL_BREAK) {
Tcl_AddErrorInfo(interp, "\n (scrollbar command)");
Tcl_BackgroundException(interp, code);