diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-12-12 21:38:46 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-12-12 21:38:46 (GMT) |
commit | db35fe50e94b2e2edd00d34c42c74754cfc5c74d (patch) | |
tree | c703641e635acee7a5f46dda14d9f82b48cdd9cb /win/tclWinSerial.c | |
parent | 9ef936369ec679944031bc9e5453785edb57641e (diff) | |
download | tcl-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.c | 2 |
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)) { |