summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixTest.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2023-05-01 13:22:24 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2023-05-01 13:22:24 (GMT)
commit530e4b3bb9e1b9acd0231c4da1a29d73180a20d5 (patch)
treed32275c10833e1cca203e0c05f52340d30682262 /unix/tclUnixTest.c
parent528b7b71686a0bb1993b1cce1166b5b70d511d31 (diff)
parent6c4b78cfa8c06ea5963591778902da74850d1985 (diff)
downloadtcl-530e4b3bb9e1b9acd0231c4da1a29d73180a20d5.zip
tcl-530e4b3bb9e1b9acd0231c4da1a29d73180a20d5.tar.gz
tcl-530e4b3bb9e1b9acd0231c4da1a29d73180a20d5.tar.bz2
Merge 8.7
Diffstat (limited to 'unix/tclUnixTest.c')
-rw-r--r--unix/tclUnixTest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclUnixTest.c b/unix/tclUnixTest.c
index 80e8081..ee1229b 100644
--- a/unix/tclUnixTest.c
+++ b/unix/tclUnixTest.c
@@ -190,7 +190,7 @@ TestfilehandlerCmd(
Tcl_WrongNumArgs(interp, 2, objv, "index");
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(Tcl_GetString(objv[1]), "create") == 0) {
if (objc != 5) {
@@ -594,7 +594,7 @@ TestgotsigCmd(
*
* Implements the "testchmod" cmd. Used when testing "file" command.
* The only attribute used by the Windows platform is the user write
- * flag; if this is not set, the file is made read-only. Otehrwise, the
+ * flag; if this is not set, the file is made read-only. Otherwise, the
* file is made read-write.
*
* Results: