summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-02-02 16:46:10 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-02-02 16:46:10 (GMT)
commitfd9dbdd294fbd96680bd4235087d418bc1cd6935 (patch)
treea175ea30c035b006b02a6bd37b6350c610d437ab /generic
parent11cc37e81849a5f4dd75bdbf84a5d77e8fabd8f8 (diff)
parent7b1d345686119335c547557b1029df64b0d3c5c5 (diff)
downloadtcl-fd9dbdd294fbd96680bd4235087d418bc1cd6935.zip
tcl-fd9dbdd294fbd96680bd4235087d418bc1cd6935.tar.gz
tcl-fd9dbdd294fbd96680bd4235087d418bc1cd6935.tar.bz2
Merge 8.6
Diffstat (limited to 'generic')
-rw-r--r--generic/tclMain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclMain.c b/generic/tclMain.c
index f045dfa..5083383 100644
--- a/generic/tclMain.c
+++ b/generic/tclMain.c
@@ -28,7 +28,7 @@
* The default prompt used when the user has not overridden it.
*/
-#define DEFAULT_PRIMARY_PROMPT "% "
+static const char DEFAULT_PRIMARY_PROMPT[] = "% ";
/*
* This file can be compiled on Windows in UNICODE mode, as well as on all
@@ -873,7 +873,7 @@ Prompt(
chan = Tcl_GetStdChannel(TCL_STDOUT);
if (chan != NULL) {
Tcl_WriteChars(chan, DEFAULT_PRIMARY_PROMPT,
- strlen(DEFAULT_PRIMARY_PROMPT));
+ sizeof(DEFAULT_PRIMARY_PROMPT) - 1);
}
}
} else {