diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-02-16 14:43:11 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-02-16 14:43:11 (GMT) |
commit | 4ecd9f7eaa31f72507645c0f692afce5f90cf2cd (patch) | |
tree | 676f9b045b92357a7d311d5065631dfeba568510 /win/tclWinSerial.c | |
parent | 1059f36a9822abd45a0246f875a959e16684dd48 (diff) | |
download | tcl-4ecd9f7eaa31f72507645c0f692afce5f90cf2cd.zip tcl-4ecd9f7eaa31f72507645c0f692afce5f90cf2cd.tar.gz tcl-4ecd9f7eaa31f72507645c0f692afce5f90cf2cd.tar.bz2 |
(cherry-pick) Reduce the number of warnings on Windows: channel names generated in one place
Diffstat (limited to 'win/tclWinSerial.c')
-rw-r--r-- | win/tclWinSerial.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/win/tclWinSerial.c b/win/tclWinSerial.c index cc72762..7e6b76a 100644 --- a/win/tclWinSerial.c +++ b/win/tclWinSerial.c @@ -1476,8 +1476,7 @@ TclWinOpenSerialChannel( * are shared between multiple channels (stdin/stdout). */ - snprintf(channelName, 16 + TCL_INTEGER_SPACE, "file%" TCL_Z_MODIFIER "x", (size_t) infoPtr); - + TclWinGenerateChannelName(channelName, "file", infoPtr); infoPtr->channel = Tcl_CreateChannel(&serialChannelType, channelName, infoPtr, permissions); |