diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | generic/tkMain.c | 5 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,9 @@ +2001-09-24 Don Porter <dgp@users.sourceforge.net> + + * generic/tkMain.c (StdinProc): Update to handle change in + return type of Tcl_DStringAppend() from (char *) to (CONST char *). + [TIP 27] + 2001-09-23 Peter Spjuth <peter.spjuth@space.se> * generic/tkPack.c (ConfigureSlaves): * tests/pack.test: diff --git a/generic/tkMain.c b/generic/tkMain.c index 6145d20..42d31f1 100644 --- a/generic/tkMain.c +++ b/generic/tkMain.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMain.c,v 1.8 2000/04/25 17:25:27 ericm Exp $ + * RCS: @(#) $Id: tkMain.c,v 1.9 2001/09/24 22:14:38 dgp Exp $ */ #include <ctype.h> @@ -332,7 +332,8 @@ StdinProc(clientData, mask) (void) Tcl_DStringAppend(&tsdPtr->command, Tcl_DStringValue( &tsdPtr->line), -1); - cmd = Tcl_DStringAppend(&tsdPtr->command, "\n", -1); + Tcl_DStringAppend(&tsdPtr->command, "\n", -1); + cmd = Tcl_DStringValue(&tsdPtr->command); Tcl_DStringFree(&tsdPtr->line); if (!Tcl_CommandComplete(cmd)) { gotPartial = 1; |