summaryrefslogtreecommitdiffstats
path: root/win/tclWinError.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-06-26 19:45:22 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-06-26 19:45:22 (GMT)
commit7a9d97826e2df30fcf48191281dede724a99ff43 (patch)
tree39d2615544de7b979c7c3535dfe8d3912f3ec702 /win/tclWinError.c
parent968382225704b01ee24ffa2764db83b5549b279d (diff)
downloadtcl-7a9d97826e2df30fcf48191281dede724a99ff43.zip
tcl-7a9d97826e2df30fcf48191281dede724a99ff43.tar.gz
tcl-7a9d97826e2df30fcf48191281dede724a99ff43.tar.bz2
Since Tcl is always compiled with -DUNICODE -D_UNICODE (on Windows) and we know TCL_UTF_MAX>=4, we can simplify things. No change in functionality.
Diffstat (limited to 'win/tclWinError.c')
-rw-r--r--win/tclWinError.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinError.c b/win/tclWinError.c
index 5d4423b..bce81fa 100644
--- a/win/tclWinError.c
+++ b/win/tclWinError.c
@@ -391,7 +391,7 @@ tclWinDebugPanic(
if (IsDebuggerPresent()) {
WCHAR msgString[TCL_MAX_WARN_LEN];
- char buf[TCL_MAX_WARN_LEN * TCL_UTF_MAX];
+ char buf[TCL_MAX_WARN_LEN * 3];
vsnprintf(buf, sizeof(buf), format, argList);
msgString[TCL_MAX_WARN_LEN-1] = L'\0';