summaryrefslogtreecommitdiffstats
path: root/generic/tclStringObj.c
diff options
context:
space:
mode:
authorapnadkarni <apnmbx-wits@yahoo.com>2023-05-19 23:07:13 (GMT)
committerapnadkarni <apnmbx-wits@yahoo.com>2023-05-19 23:07:13 (GMT)
commit1b8701ee3d55320b42676e77ce32c04950facee6 (patch)
tree53582f83932c90609c0ae3a75d3668f48369187f /generic/tclStringObj.c
parent16a75f3cbf8ba7ab30d4f5f1adcd658269d9ae8c (diff)
parent83d22bd1f6fd20b5ce07fc4e16af80619f859422 (diff)
downloadtcl-1b8701ee3d55320b42676e77ce32c04950facee6.zip
tcl-1b8701ee3d55320b42676e77ce32c04950facee6.tar.gz
tcl-1b8701ee3d55320b42676e77ce32c04950facee6.tar.bz2
Merge trunk
Diffstat (limited to 'generic/tclStringObj.c')
-rw-r--r--generic/tclStringObj.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/generic/tclStringObj.c b/generic/tclStringObj.c
index b846320..0da5f04 100644
--- a/generic/tclStringObj.c
+++ b/generic/tclStringObj.c
@@ -2536,7 +2536,7 @@ Tcl_AppendFormatToObj(
goto errorMsg;
}
bytes = TclGetString(segment);
- if (!Tcl_AttemptSetObjLength(segment, sprintf(bytes, spec, d))) {
+ if (!Tcl_AttemptSetObjLength(segment, snprintf(bytes, length, spec, d))) {
msg = overflow;
errCode = "OVERFLOW";
goto errorMsg;
@@ -4302,7 +4302,6 @@ DupStringInternalRep(
* bother copying it. Don't even bother allocating space in which to
* copy it. Just let the copy be untyped.
*/
-
return;
}