summaryrefslogtreecommitdiff
path: root/tk/unix/tkUnixInit.c
diff options
context:
space:
mode:
Diffstat (limited to 'tk/unix/tkUnixInit.c')
-rw-r--r--tk/unix/tkUnixInit.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/tk/unix/tkUnixInit.c b/tk/unix/tkUnixInit.c
index a566f0fba1b..7f3a4b0fe5a 100644
--- a/tk/unix/tkUnixInit.c
+++ b/tk/unix/tkUnixInit.c
@@ -32,7 +32,7 @@
*
* Results:
* Returns a standard Tcl result. Leaves an error message or result
- * in interp->result.
+ * in the interp's result.
*
* Side effects:
* Sets "tk_library" Tcl variable, runs "tk.tcl" script.
@@ -109,9 +109,10 @@ TkpDisplayWarning(msg, title)
{
Tcl_Channel errChannel = Tcl_GetStdChannel(TCL_STDERR);
if (errChannel) {
- Tcl_Write(errChannel, title, -1);
- Tcl_Write(errChannel, ": ", 2);
- Tcl_Write(errChannel, msg, -1);
- Tcl_Write(errChannel, "\n", 1);
+ Tcl_WriteChars(errChannel, title, -1);
+ Tcl_WriteChars(errChannel, ": ", 2);
+ Tcl_WriteChars(errChannel, msg, -1);
+ Tcl_WriteChars(errChannel, "\n", 1);
}
}
+