summaryrefslogtreecommitdiffstats
path: root/unix/tclLoadDl.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2023-05-24 16:02:24 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2023-05-24 16:02:24 (GMT)
commit29225e440c7dfc3b4fb54d8bb5a8b32fd9604d6f (patch)
tree76a21d1b72f69d7f7218eb0332f9d2afbed472d5 /unix/tclLoadDl.c
parent4a3c559932945a74fed481561274ceedc4afe555 (diff)
parent70a3d08fc4eb639c20c5613ea5952a0dfdd5e935 (diff)
downloadtcl-29225e440c7dfc3b4fb54d8bb5a8b32fd9604d6f.zip
tcl-29225e440c7dfc3b4fb54d8bb5a8b32fd9604d6f.tar.gz
tcl-29225e440c7dfc3b4fb54d8bb5a8b32fd9604d6f.tar.bz2
merge core-8-branch
Diffstat (limited to 'unix/tclLoadDl.c')
-rw-r--r--unix/tclLoadDl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tclLoadDl.c b/unix/tclLoadDl.c
index 5c19ea3..afceafd 100644
--- a/unix/tclLoadDl.c
+++ b/unix/tclLoadDl.c
@@ -191,7 +191,7 @@ FindSymbol(
#ifdef __cplusplus
if (proc == NULL) {
char buf[32];
- sprintf(buf, "%d", Tcl_DStringLength(&ds));
+ snprintf(buf, sizeof(buf), "%d", Tcl_DStringLength(&ds));
Tcl_DStringInit(&newName);
TclDStringAppendLiteral(&newName, "__Z");
Tcl_DStringAppend(&newName, buf, TCL_INDEX_NONE);