diff options
author | Kevin B Kenny <kennykb@acm.org> | 2010-10-01 13:34:09 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2010-10-01 13:34:09 (GMT) |
commit | 1b1d8617a95c45a5348cc37ec96e85dba77cff28 (patch) | |
tree | 744dee9e5f71658488ec833897ab66be3529e065 /generic/tclEncoding.c | |
parent | e4330954164421336f3ea7141c105f8af0281e88 (diff) | |
download | tcl-1b1d8617a95c45a5348cc37ec96e85dba77cff28.zip tcl-1b1d8617a95c45a5348cc37ec96e85dba77cff28.tar.gz tcl-1b1d8617a95c45a5348cc37ec96e85dba77cff28.tar.bz2 |
merge
Diffstat (limited to 'generic/tclEncoding.c')
-rw-r--r-- | generic/tclEncoding.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclEncoding.c b/generic/tclEncoding.c index 11e0c9c..4dfd8ab 100644 --- a/generic/tclEncoding.c +++ b/generic/tclEncoding.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: tclEncoding.c,v 1.72 2010/09/16 14:49:37 nijtmans Exp $ + * RCS: @(#) $Id: tclEncoding.c,v 1.72.2.1 2010/10/01 13:34:09 kennykb Exp $ */ #include "tclInt.h" @@ -2019,9 +2019,9 @@ LoadEscapeEncoding( + Tcl_DStringLength(&escapeData); dataPtr = (EscapeEncodingData *) ckalloc(size); dataPtr->initLen = strlen(init); - strcpy(dataPtr->init, init); + memcpy(dataPtr->init, init, (unsigned) dataPtr->initLen + 1); dataPtr->finalLen = strlen(final); - strcpy(dataPtr->final, final); + memcpy(dataPtr->final, final, (unsigned) dataPtr->finalLen + 1); dataPtr->numSubTables = Tcl_DStringLength(&escapeData) / sizeof(EscapeSubTable); memcpy(dataPtr->subTables, Tcl_DStringValue(&escapeData), |