summaryrefslogtreecommitdiffstats
path: root/generic/tclTest.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-25 12:02:56 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-06-25 12:02:56 (GMT)
commit61ab4e7385f66e8fbbfdae5b63d6548c62875ceb (patch)
tree0e3d5e83686f4317e0ac34e027faf85a6bdbb716 /generic/tclTest.c
parent21cf159ca75e16fe0d396af83f2c0342fa7c9913 (diff)
downloadtcl-61ab4e7385f66e8fbbfdae5b63d6548c62875ceb.zip
tcl-61ab4e7385f66e8fbbfdae5b63d6548c62875ceb.tar.gz
tcl-61ab4e7385f66e8fbbfdae5b63d6548c62875ceb.tar.bz2
Don't use deprecated Tcl_DStringTrunc any more.
Diffstat (limited to 'generic/tclTest.c')
-rw-r--r--generic/tclTest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclTest.c b/generic/tclTest.c
index 1ba73e7..9ef7805 100644
--- a/generic/tclTest.c
+++ b/generic/tclTest.c
@@ -1848,7 +1848,7 @@ TestdstringCmd(
if (Tcl_GetInt(interp, argv[2], &count) != TCL_OK) {
return TCL_ERROR;
}
- Tcl_DStringTrunc(&dstring, count);
+ Tcl_DStringSetLength(&dstring, count);
} else if (strcmp(argv[1], "start") == 0) {
if (argc != 2) {
goto wrongNumArgs;