diff options
author | dgp@users.sourceforge.net <dgp> | 2002-02-08 02:57:10 (GMT) |
---|---|---|
committer | dgp@users.sourceforge.net <dgp> | 2002-02-08 02:57:10 (GMT) |
commit | 9fe2c64c02fbc59f23d0d404b98e39fd4d5b9a0d (patch) | |
tree | 0dce5cb9458a0fe29fd391898aedfe73a6b1a598 /generic/tkMain.c | |
parent | 54e2634c650881ded0b0ae8e0184de6abb6cda53 (diff) | |
download | tk-9fe2c64c02fbc59f23d0d404b98e39fd4d5b9a0d.zip tk-9fe2c64c02fbc59f23d0d404b98e39fd4d5b9a0d.tar.gz tk-9fe2c64c02fbc59f23d0d404b98e39fd4d5b9a0d.tar.bz2 |
* modified some callers of Tcl routines that
were restored to return (char *) pointing into Tcl_DStrings.
Diffstat (limited to 'generic/tkMain.c')
-rw-r--r-- | generic/tkMain.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/tkMain.c b/generic/tkMain.c index d5c6acb..34fa5b3 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.12 2002/01/25 21:09:37 dgp Exp $ + * RCS: @(#) $Id: tkMain.c,v 1.13 2002/02/08 02:57:11 dgp Exp $ */ #include <ctype.h> @@ -335,8 +335,7 @@ StdinProc(clientData, mask) (void) Tcl_DStringAppend(&tsdPtr->command, Tcl_DStringValue( &tsdPtr->line), -1); - Tcl_DStringAppend(&tsdPtr->command, "\n", -1); - cmd = Tcl_DStringValue(&tsdPtr->command); + cmd = Tcl_DStringAppend(&tsdPtr->command, "\n", -1); Tcl_DStringFree(&tsdPtr->line); if (!Tcl_CommandComplete(cmd)) { gotPartial = 1; |