summaryrefslogtreecommitdiffstats
path: root/win/tkWinTest.c
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2002-02-08 02:57:10 (GMT)
committerdgp@users.sourceforge.net <dgp>2002-02-08 02:57:10 (GMT)
commitf5cdaf4fcfba2a641a48b5ddff8b24469b544d50 (patch)
tree0dce5cb9458a0fe29fd391898aedfe73a6b1a598 /win/tkWinTest.c
parent6d2109f5b1dc886ac858cf87e30c27562dc48eb3 (diff)
downloadtk-f5cdaf4fcfba2a641a48b5ddff8b24469b544d50.zip
tk-f5cdaf4fcfba2a641a48b5ddff8b24469b544d50.tar.gz
tk-f5cdaf4fcfba2a641a48b5ddff8b24469b544d50.tar.bz2
* modified some callers of Tcl routines that
were restored to return (char *) pointing into Tcl_DStrings.
Diffstat (limited to 'win/tkWinTest.c')
-rw-r--r--win/tkWinTest.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/win/tkWinTest.c b/win/tkWinTest.c
index bc84e85..ce0259d 100644
--- a/win/tkWinTest.c
+++ b/win/tkWinTest.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinTest.c,v 1.5 2001/10/01 21:20:36 hobbs Exp $
+ * RCS: @(#) $Id: tkWinTest.c,v 1.6 2002/02/08 02:57:11 dgp Exp $
*/
#include "tkWinInt.h"
@@ -121,11 +121,10 @@ AppendSystemError(
Tcl_Encoding encoding;
encoding = Tcl_GetEncoding(NULL, "unicode");
- Tcl_ExternalToUtfDString(encoding, (char *) wMsgPtr, -1, &ds);
+ msg = Tcl_ExternalToUtfDString(encoding, (char *) wMsgPtr, -1, &ds);
Tcl_FreeEncoding(encoding);
LocalFree(wMsgPtr);
- msg = Tcl_DStringValue(&ds);
length = Tcl_DStringLength(&ds);
/*