diff options
author | fvogel <fvogelnew1@free.fr> | 2023-01-10 22:02:07 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2023-01-10 22:02:07 (GMT) |
commit | de829322e7a608e3f34d647a6674c32909c24689 (patch) | |
tree | e1bf010662468253e4acc69da003c61f1558df61 /unix/tkUnixWm.c | |
parent | 7249bffdfb065bb08b668338d6c68291fa19654b (diff) | |
download | tk-de829322e7a608e3f34d647a6674c32909c24689.zip tk-de829322e7a608e3f34d647a6674c32909c24689.tar.gz tk-de829322e7a608e3f34d647a6674c32909c24689.tar.bz2 |
Eradicate uses of sprintf because it triggers deprecation warning on macOS Ventura. Only a single instance left in TkpPrintWindowId() (tkWinWindow.c).
Diffstat (limited to 'unix/tkUnixWm.c')
-rw-r--r-- | unix/tkUnixWm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tkUnixWm.c b/unix/tkUnixWm.c index 8330098..46beecf 100644 --- a/unix/tkUnixWm.c +++ b/unix/tkUnixWm.c @@ -1879,7 +1879,7 @@ WmFrameCmd( if (window == None) { window = Tk_WindowId((Tk_Window) winPtr); } - sprintf(buf, "0x%" TCL_Z_MODIFIER "x", (size_t)window); + snprintf(buf, sizeof(buf), "0x%" TCL_Z_MODIFIER "x", (size_t)window); Tcl_SetObjResult(interp, Tcl_NewStringObj(buf, -1)); return TCL_OK; } |