summaryrefslogtreecommitdiffstats
path: root/win/tclWinConsole.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2024-02-16 14:17:09 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2024-02-16 14:17:09 (GMT)
commit348a15e956c5e8efa00e0b87aae997ff631bd869 (patch)
tree60c8d66486ae300e587b4d827e0245979e1a63f8 /win/tclWinConsole.c
parent4c72523145189602c33c3e0d08e1b716fef1a34f (diff)
downloadtcl-348a15e956c5e8efa00e0b87aae997ff631bd869.zip
tcl-348a15e956c5e8efa00e0b87aae997ff631bd869.tar.gz
tcl-348a15e956c5e8efa00e0b87aae997ff631bd869.tar.bz2
Reduce the number of warnings on Windows: channel names generated in one place
Diffstat (limited to 'win/tclWinConsole.c')
-rw-r--r--win/tclWinConsole.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinConsole.c b/win/tclWinConsole.c
index 5b30fc4..eb81370 100644
--- a/win/tclWinConsole.c
+++ b/win/tclWinConsole.c
@@ -2116,7 +2116,7 @@ TclWinOpenConsoleChannel(
* for instance).
*/
- snprintf(channelName, 16 + TCL_INTEGER_SPACE, "file%" TCL_Z_MODIFIER "x", (size_t) chanInfoPtr);
+ TclWinGenerateChannelName(channelName, "file", chanInfoPtr);
if (permissions & TCL_READABLE) {
/*