summaryrefslogtreecommitdiffstats
path: root/generic/tkBusy.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2023-01-18 20:23:38 (GMT)
committerfvogel <fvogelnew1@free.fr>2023-01-18 20:23:38 (GMT)
commite1fdc1e995e1e01172159c960f7fe8d611cfaf64 (patch)
tree66f5ec6ffcc6e3d649cc3d98b77882fbe92807e6 /generic/tkBusy.c
parentf413e249b3c0711dbefa5521ed2cc26c5bd20968 (diff)
parentbc9027416eca9c0e52af3a412e4e012bc2495511 (diff)
downloadtk-e1fdc1e995e1e01172159c960f7fe8d611cfaf64.zip
tk-e1fdc1e995e1e01172159c960f7fe8d611cfaf64.tar.gz
tk-e1fdc1e995e1e01172159c960f7fe8d611cfaf64.tar.bz2
Merge core-8-6-branch: Eradicate uses of sprintf because it triggers deprecation warning on macOS Ventura. Resolve conflicts. Remove sprintf calls specific to the main branch.
Diffstat (limited to 'generic/tkBusy.c')
-rw-r--r--generic/tkBusy.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tkBusy.c b/generic/tkBusy.c
index 2c56bf6..c3bd6a2 100644
--- a/generic/tkBusy.c
+++ b/generic/tkBusy.c
@@ -16,6 +16,10 @@
#include "tkBusy.h"
#include "default.h"
+#ifdef _WIN32
+#include "tkWinInt.h"
+#endif
+
/*
* Things about the busy system that may be configured. Note that on some
* platforms this may or may not have an effect.
@@ -550,7 +554,7 @@ CreateBusy(
tkChild = NextChild(tkChild)) {
Tk_MakeWindowExist(tkChild);
}
- sprintf(name, fmt, Tk_Name(tkRef));
+ snprintf(name, length + 6, fmt, Tk_Name(tkRef));
tkBusy = Tk_CreateWindow(interp, tkParent, name, NULL);
ckfree(name);