summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-04-01 10:27:54 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-04-01 10:27:54 (GMT)
commitbaa549af6a4cd6b4caf71c2f0861ee682cc151d3 (patch)
tree9c50f937fbf7d90f1fc7f249e2581d798d958bfc /generic/tclCompile.h
parenta30f4dce67cdc3e8e8da693579f8abd90ea22f43 (diff)
parentce04b407d9ed313df659f9d292b91ca65f3e82c4 (diff)
downloadtcl-baa549af6a4cd6b4caf71c2f0861ee682cc151d3.zip
tcl-baa549af6a4cd6b4caf71c2f0861ee682cc151d3.tar.gz
tcl-baa549af6a4cd6b4caf71c2f0861ee682cc151d3.tar.bz2
Merge 9.0
Diffstat (limited to 'generic/tclCompile.h')
-rw-r--r--generic/tclCompile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclCompile.h b/generic/tclCompile.h
index ccfa4b5..5772dec 100644
--- a/generic/tclCompile.h
+++ b/generic/tclCompile.h
@@ -1817,7 +1817,7 @@ MODULE_SCOPE void TclDTraceInfo(Tcl_Obj *info, const char **args, int *argsi);
FILE *tclDTraceDebugLog = NULL; \
void TclDTraceOpenDebugLog(void) { \
char n[35]; \
- sprintf(n, "/tmp/tclDTraceDebug-%" TCL_Z_MODIFIER "u.log", \
+ snprintf(n, sizeof(n), "/tmp/tclDTraceDebug-%" TCL_Z_MODIFIER "u.log", \
(size_t) getpid()); \
tclDTraceDebugLog = fopen(n, "a"); \
}