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/tclRegexp.c | |
parent | e4330954164421336f3ea7141c105f8af0281e88 (diff) | |
download | tcl-1b1d8617a95c45a5348cc37ec96e85dba77cff28.zip tcl-1b1d8617a95c45a5348cc37ec96e85dba77cff28.tar.gz tcl-1b1d8617a95c45a5348cc37ec96e85dba77cff28.tar.bz2 |
merge
Diffstat (limited to 'generic/tclRegexp.c')
-rw-r--r-- | generic/tclRegexp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclRegexp.c b/generic/tclRegexp.c index 6848960..f247572 100644 --- a/generic/tclRegexp.c +++ b/generic/tclRegexp.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclRegexp.c,v 1.34 2010/02/24 10:32:17 dkf Exp $ + * RCS: @(#) $Id: tclRegexp.c,v 1.34.4.1 2010/10/01 13:34:09 kennykb Exp $ */ #include "tclInt.h" @@ -990,7 +990,7 @@ CompileRegexp( tsdPtr->regexps[i+1] = tsdPtr->regexps[i]; } tsdPtr->patterns[0] = ckalloc((unsigned) length+1); - strcpy(tsdPtr->patterns[0], string); + memcpy(tsdPtr->patterns[0], string, (unsigned) length + 1); tsdPtr->patLengths[0] = length; tsdPtr->regexps[0] = regexpPtr; |