diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-03-30 21:20:30 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-03-30 21:20:30 (GMT) |
| commit | 186145578675341deb63fd53e6080896695c3574 (patch) | |
| tree | 4aa12b60fc6ad7ca4c19658d774dee4326ad165b /unix/tclUnixTest.c | |
| parent | 784535a35c779f46886fe9a880b706c979efdd77 (diff) | |
| parent | 191fecdc87592dfea94718bc716551c72f072c33 (diff) | |
| download | tcl-186145578675341deb63fd53e6080896695c3574.zip tcl-186145578675341deb63fd53e6080896695c3574.tar.gz tcl-186145578675341deb63fd53e6080896695c3574.tar.bz2 | |
Fix [0cb3554903]: macOS 13 SDK deprecates sprintf()
Diffstat (limited to 'unix/tclUnixTest.c')
| -rw-r--r-- | unix/tclUnixTest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tclUnixTest.c b/unix/tclUnixTest.c index c5ac52a..9b89b2f 100644 --- a/unix/tclUnixTest.c +++ b/unix/tclUnixTest.c @@ -202,7 +202,7 @@ TestfilehandlerCmd( argv[0], " counts index\"", NULL); return TCL_ERROR; } - sprintf(buf, "%d %d", pipePtr->readCount, pipePtr->writeCount); + snprintf(buf, sizeof(buf), "%d %d", pipePtr->readCount, pipePtr->writeCount); Tcl_AppendResult(interp, buf, NULL); } else if (strcmp(argv[1], "create") == 0) { if (argc != 5) { |
