diff options
author | dgp <dgp@users.sourceforge.net> | 2024-02-20 17:53:31 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2024-02-20 17:53:31 (GMT) |
commit | fc9f52bfc316f12ce29e686bea8a79a1652705ba (patch) | |
tree | 9607d8eeaf776f13feee69f35aaf1c22d4c6bc8d /win | |
parent | 2e9720463bb86d4ff7a96d5a9aff6a3358a7125b (diff) | |
parent | 1b93f5c69d1f43f8225f215de5f233db6e7eaa5c (diff) | |
download | tcl-fc9f52bfc316f12ce29e686bea8a79a1652705ba.zip tcl-fc9f52bfc316f12ce29e686bea8a79a1652705ba.tar.gz tcl-fc9f52bfc316f12ce29e686bea8a79a1652705ba.tar.bz2 |
merge 8.6
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinConsole.c | 2 | ||||
-rw-r--r-- | win/tclWinSock.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinConsole.c b/win/tclWinConsole.c index facdb01..0bfa5a5 100644 --- a/win/tclWinConsole.c +++ b/win/tclWinConsole.c @@ -1335,7 +1335,7 @@ TclWinOpenConsoleChannel( * for instance). */ - snprintf(channelName, TCL_INTEGER_SPACE + 4, "file%" TCL_Z_MODIFIER "x", (size_t) infoPtr); + snprintf(channelName, 16 + TCL_INTEGER_SPACE, "file%" TCL_Z_MODIFIER "x", (size_t) infoPtr); infoPtr->channel = Tcl_CreateChannel(&consoleChannelType, channelName, infoPtr, permissions); diff --git a/win/tclWinSock.c b/win/tclWinSock.c index abe8321..df81c46 100644 --- a/win/tclWinSock.c +++ b/win/tclWinSock.c @@ -81,7 +81,7 @@ #define GOT_BITS(var, bits) (((var) & (bits)) != 0) /* "sock" + a pointer in hex + \0 */ -#define SOCK_CHAN_LENGTH (4 + sizeof(void *) * 2 + 1) +#define SOCK_CHAN_LENGTH (16 + TCL_INTEGER_SPACE) #define SOCK_TEMPLATE "sock%p" /* |