summaryrefslogtreecommitdiffstats
path: root/win/tclWinSerial.c
diff options
context:
space:
mode:
Diffstat (limited to 'win/tclWinSerial.c')
-rw-r--r--win/tclWinSerial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/tclWinSerial.c b/win/tclWinSerial.c
index 3e766f3..819d866 100644
--- a/win/tclWinSerial.c
+++ b/win/tclWinSerial.c
@@ -1501,7 +1501,7 @@ TclWinOpenSerialChannel(
* are shared between multiple channels (stdin/stdout).
*/
- sprintf(channelName, "file%Ix", (size_t) infoPtr);
+ sprintf(channelName, "file%" TCL_I_MODIFIER "x", (size_t) infoPtr);
infoPtr->channel = Tcl_CreateChannel(&serialChannelType, channelName,
infoPtr, permissions);