summaryrefslogtreecommitdiffstats
path: root/generic/tclMain.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-02-02 16:47:02 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-02-02 16:47:02 (GMT)
commit5f7ce8feb0b989c40f609f9c05540a14a57159f4 (patch)
tree29c129ac363a4194d80e89b86e131627570bdc02 /generic/tclMain.c
parentede2c7e15fe58b2d873a8495b111b019cc72dd0f (diff)
parentfd9dbdd294fbd96680bd4235087d418bc1cd6935 (diff)
downloadtcl-5f7ce8feb0b989c40f609f9c05540a14a57159f4.zip
tcl-5f7ce8feb0b989c40f609f9c05540a14a57159f4.tar.gz
tcl-5f7ce8feb0b989c40f609f9c05540a14a57159f4.tar.bz2
Merge 8.7
Diffstat (limited to 'generic/tclMain.c')
-rw-r--r--generic/tclMain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclMain.c b/generic/tclMain.c
index 3a6c9cc..2778451 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 {