diff options
author | fvogel <fvogelnew1@free.fr> | 2023-01-18 20:23:38 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2023-01-18 20:23:38 (GMT) |
commit | e1fdc1e995e1e01172159c960f7fe8d611cfaf64 (patch) | |
tree | 66f5ec6ffcc6e3d649cc3d98b77882fbe92807e6 /generic/tkBusy.c | |
parent | f413e249b3c0711dbefa5521ed2cc26c5bd20968 (diff) | |
parent | bc9027416eca9c0e52af3a412e4e012bc2495511 (diff) | |
download | tk-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.c | 6 |
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); |