Subject: Don't use deprecated Tcl_DStringTrunc any more.

From: "jan.nijtmans" <[email-masked]>
Date: Tue, 25 Jun 2013 12:02:56 +0000

---
 generic/tclTest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
cgit v0.12