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 | 4232e44dd8eb816f82dcf2aba8cc90bb497f1b81 (patch) | |
| tree | 744dee9e5f71658488ec833897ab66be3529e065 /generic/tclEncoding.c | |
| parent | c4b07cd6fe4e22ee7ecdf014fe3bd71dacf170d2 (diff) | |
| download | tcl-4232e44dd8eb816f82dcf2aba8cc90bb497f1b81.zip tcl-4232e44dd8eb816f82dcf2aba8cc90bb497f1b81.tar.gz tcl-4232e44dd8eb816f82dcf2aba8cc90bb497f1b81.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), |
