summaryrefslogtreecommitdiffstats
path: root/generic/tclObj.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)
commit1b1d8617a95c45a5348cc37ec96e85dba77cff28 (patch)
tree744dee9e5f71658488ec833897ab66be3529e065 /generic/tclObj.c
parente4330954164421336f3ea7141c105f8af0281e88 (diff)
downloadtcl-1b1d8617a95c45a5348cc37ec96e85dba77cff28.zip
tcl-1b1d8617a95c45a5348cc37ec96e85dba77cff28.tar.gz
tcl-1b1d8617a95c45a5348cc37ec96e85dba77cff28.tar.bz2
merge
Diffstat (limited to 'generic/tclObj.c')
-rw-r--r--generic/tclObj.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclObj.c b/generic/tclObj.c
index 5b8cb89..24a29a5 100644
--- a/generic/tclObj.c
+++ b/generic/tclObj.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclObj.c,v 1.174.2.1 2010/09/27 20:33:37 kennykb Exp $
+ * RCS: @(#) $Id: tclObj.c,v 1.174.2.2 2010/10/01 13:34:09 kennykb Exp $
*/
#include "tclInt.h"
@@ -2355,7 +2355,7 @@ UpdateStringOfDouble(
len = strlen(buffer);
objPtr->bytes = (char *) ckalloc((unsigned) len + 1);
- strcpy(objPtr->bytes, buffer);
+ memcpy(objPtr->bytes, buffer, (unsigned) len + 1);
objPtr->length = len;
}
@@ -2551,7 +2551,7 @@ UpdateStringOfInt(
len = TclFormatInt(buffer, objPtr->internalRep.longValue);
objPtr->bytes = ckalloc((unsigned) len + 1);
- strcpy(objPtr->bytes, buffer);
+ memcpy(objPtr->bytes, buffer, (unsigned) len + 1);
objPtr->length = len;
}