diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-02-02 16:46:10 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-02-02 16:46:10 (GMT) |
commit | fd9dbdd294fbd96680bd4235087d418bc1cd6935 (patch) | |
tree | a175ea30c035b006b02a6bd37b6350c610d437ab /generic/tclMain.c | |
parent | 11cc37e81849a5f4dd75bdbf84a5d77e8fabd8f8 (diff) | |
parent | 7b1d345686119335c547557b1029df64b0d3c5c5 (diff) | |
download | tcl-fd9dbdd294fbd96680bd4235087d418bc1cd6935.zip tcl-fd9dbdd294fbd96680bd4235087d418bc1cd6935.tar.gz tcl-fd9dbdd294fbd96680bd4235087d418bc1cd6935.tar.bz2 |
Merge 8.6
Diffstat (limited to 'generic/tclMain.c')
-rw-r--r-- | generic/tclMain.c | 4 |
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 { |