diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-07-08 10:23:47 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-07-08 10:23:47 (GMT) |
commit | 81e496741b55cf661f300b8eda4eba3a91010fb1 (patch) | |
tree | 303000502a24c6a65536babdabe15b4c9bfb6953 /win/tclWinSerial.c | |
parent | 8c652eebaacd8ebb77c256428a3cda8a1bf8b814 (diff) | |
download | tcl-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/tclWinSerial.c')
-rw-r--r-- | win/tclWinSerial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinSerial.c b/win/tclWinSerial.c index fb092ff..1417c9c 100644 --- a/win/tclWinSerial.c +++ b/win/tclWinSerial.c @@ -1499,7 +1499,7 @@ TclWinOpenSerialChannel( * are shared between multiple channels (stdin/stdout). */ - wsprintfA(channelName, "file%lx", PTR2INT(infoPtr)); + sprintf(channelName, "file" TCL_I_MODIFIER "x", (size_t)infoPtr); infoPtr->channel = Tcl_CreateChannel(&serialChannelType, channelName, (ClientData) infoPtr, permissions); |