summaryrefslogtreecommitdiffstats
path: root/win/tclWinDde.c
diff options
context:
space:
mode:
authorjan.nijtmans <jan.nijtmans@noemail.net>2013-02-20 10:25:59 (GMT)
committerjan.nijtmans <jan.nijtmans@noemail.net>2013-02-20 10:25:59 (GMT)
commit9dc9bc0d4140ec34be940f42b831946c39f5f0ff (patch)
tree022bbca3adecbcdef3ed73f7eac451f7d06c9e19 /win/tclWinDde.c
parentb61ae5e8810c2961f6f438b67233733eadab7b7d (diff)
downloadtcl-9dc9bc0d4140ec34be940f42b831946c39f5f0ff.zip
tcl-9dc9bc0d4140ec34be940f42b831946c39f5f0ff.tar.gz
tcl-9dc9bc0d4140ec34be940f42b831946c39f5f0ff.tar.bz2
Bug 3605401: Compiler error with latest mingw-w64 headers
FossilOrigin-Name: d67be824f88a1b4b422abc75f3b8fba6b32c713d
Diffstat (limited to 'win/tclWinDde.c')
-rw-r--r--win/tclWinDde.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/win/tclWinDde.c b/win/tclWinDde.c
index d0600e6..94b4e4c 100644
--- a/win/tclWinDde.c
+++ b/win/tclWinDde.c
@@ -385,7 +385,8 @@ DdeSetServerName(
Tcl_DStringSetLength(&dString, offset + sizeof(TCHAR) * TCL_INTEGER_SPACE);
actualName = (TCHAR *) Tcl_DStringValue(&dString);
}
- _stprintf((TCHAR *) (Tcl_DStringValue(&dString) + offset), TEXT("%d"), suffix);
+ _sntprintf((TCHAR *) (Tcl_DStringValue(&dString) + offset),
+ TCL_INTEGER_SPACE, TEXT("%d"), suffix);
}
/*