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 d0703b3..ae94853 100644 --- a/generic/tclStringObj.c +++ b/generic/tclStringObj.c @@ -2555,7 +2555,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; @@ -4321,7 +4321,6 @@ DupStringInternalRep( * bother copying it. Don't even bother allocating space in which to * copy it. Just let the copy be untyped. */ - return; } |
