summaryrefslogtreecommitdiffstats
path: root/win/tclWinSerial.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-12 21:38:46 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-12 21:38:46 (GMT)
commitdb35fe50e94b2e2edd00d34c42c74754cfc5c74d (patch)
treec703641e635acee7a5f46dda14d9f82b48cdd9cb /win/tclWinSerial.c
parent9ef936369ec679944031bc9e5453785edb57641e (diff)
downloadtcl-db35fe50e94b2e2edd00d34c42c74754cfc5c74d.zip
tcl-db35fe50e94b2e2edd00d34c42c74754cfc5c74d.tar.gz
tcl-db35fe50e94b2e2edd00d34c42c74754cfc5c74d.tar.bz2
Little code tweaks, regarding the use of TCL_UTF_MAX or wchar_t.
Diffstat (limited to 'win/tclWinSerial.c')
-rw-r--r--win/tclWinSerial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinSerial.c b/win/tclWinSerial.c
index 65af10f..e945055 100644
--- a/win/tclWinSerial.c
+++ b/win/tclWinSerial.c
@@ -2152,7 +2152,7 @@ SerialGetOptionProc(
Tcl_DStringStartSublist(dsPtr);
}
if (len==0 || (len>1 && strncmp(optionName, "-xchar", len) == 0)) {
- char buf[TCL_UTF_MAX];
+ char buf[4];
valid = 1;
if (!GetCommState(infoPtr->handle, &dcb)) {