summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-02-20 10:25:59 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-02-20 10:25:59 (GMT)
commit19ca91ba8231e7c91700d47800fd8d3b5df0c107 (patch)
tree022bbca3adecbcdef3ed73f7eac451f7d06c9e19 /win
parent3eafe75fbc925da366e32a959d479a254ebfc02a (diff)
downloadtcl-19ca91ba8231e7c91700d47800fd8d3b5df0c107.zip
tcl-19ca91ba8231e7c91700d47800fd8d3b5df0c107.tar.gz
tcl-19ca91ba8231e7c91700d47800fd8d3b5df0c107.tar.bz2
Bug 3605401: Compiler error with latest mingw-w64 headers
Diffstat (limited to 'win')
-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);
}
/*