summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}
/*