summaryrefslogtreecommitdiffstats
path: root/generic/tclResult.c
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2010-10-01 13:34:09 (GMT)
committerKevin B Kenny <kennykb@acm.org>2010-10-01 13:34:09 (GMT)
commit4232e44dd8eb816f82dcf2aba8cc90bb497f1b81 (patch)
tree744dee9e5f71658488ec833897ab66be3529e065 /generic/tclResult.c
parentc4b07cd6fe4e22ee7ecdf014fe3bd71dacf170d2 (diff)
downloadtcl-4232e44dd8eb816f82dcf2aba8cc90bb497f1b81.zip
tcl-4232e44dd8eb816f82dcf2aba8cc90bb497f1b81.tar.gz
tcl-4232e44dd8eb816f82dcf2aba8cc90bb497f1b81.tar.bz2
merge
Diffstat (limited to 'generic/tclResult.c')
-rw-r--r--generic/tclResult.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclResult.c b/generic/tclResult.c
index 919a901..2d319e9 100644
--- a/generic/tclResult.c
+++ b/generic/tclResult.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclResult.c,v 1.61.2.1 2010/09/22 01:08:49 kennykb Exp $
+ * RCS: @(#) $Id: tclResult.c,v 1.61.2.2 2010/10/01 13:34:09 kennykb Exp $
*/
#include "tclInt.h"
@@ -436,7 +436,7 @@ Tcl_SetResult(
iPtr->result = iPtr->resultSpace;
iPtr->freeProc = 0;
}
- strcpy(iPtr->result, result);
+ memcpy(iPtr->result, result, (unsigned) length+1);
} else {
iPtr->result = (char *) result;
iPtr->freeProc = freeProc;