summaryrefslogtreecommitdiffstats
path: root/win/tclWinSock.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-02-19 16:27:45 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-02-19 16:27:45 (GMT)
commitc1fc3414ab92e46a2ba18629cb3543e512cfbee7 (patch)
tree66114a143446e6fa36a788faec9a5b6831817896 /win/tclWinSock.c
parentfe87d877dda78ee0e19ad6860c70c0d46924dd21 (diff)
downloadtcl-c1fc3414ab92e46a2ba18629cb3543e512cfbee7.zip
tcl-c1fc3414ab92e46a2ba18629cb3543e512cfbee7.tar.gz
tcl-c1fc3414ab92e46a2ba18629cb3543e512cfbee7.tar.bz2
TCL_INTEGER_SPACE + 4 could be too small for a channelName on win32. Backported from 9.0: Derpfix...
Diffstat (limited to 'win/tclWinSock.c')
-rw-r--r--win/tclWinSock.c2
1 files changed, 1 insertions, 1 deletions
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"
/*