diff options
Diffstat (limited to 'generic/tclStringObj.c')
| -rw-r--r-- | generic/tclStringObj.c | 3 |
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; } |
