summaryrefslogtreecommitdiffstats
path: root/win/tclWinChan.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-07-08 10:23:47 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-07-08 10:23:47 (GMT)
commit81e496741b55cf661f300b8eda4eba3a91010fb1 (patch)
tree303000502a24c6a65536babdabe15b4c9bfb6953 /win/tclWinChan.c
parent8c652eebaacd8ebb77c256428a3cda8a1bf8b814 (diff)
downloadtcl-81e496741b55cf661f300b8eda4eba3a91010fb1.zip
tcl-81e496741b55cf661f300b8eda4eba3a91010fb1.tar.gz
tcl-81e496741b55cf661f300b8eda4eba3a91010fb1.tar.bz2
add TCL_I_MODIFIER and use it in the correct places
Diffstat (limited to 'win/tclWinChan.c')
-rw-r--r--win/tclWinChan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinChan.c b/win/tclWinChan.c
index 0f17834..a20cb8f 100644
--- a/win/tclWinChan.c
+++ b/win/tclWinChan.c
@@ -1337,7 +1337,7 @@ TclWinOpenFileChannel(
infoPtr->flags = appendMode;
infoPtr->handle = handle;
infoPtr->dirty = 0;
- wsprintfA(channelName, "file%lx", PTR2INT(infoPtr));
+ sprintf(channelName, "file" TCL_I_MODIFIER "x", (size_t)infoPtr);
infoPtr->channel = Tcl_CreateChannel(&fileChannelType, channelName,
(ClientData) infoPtr, permissions);