diff options
author | dkf <dkf@noemail.net> | 2010-10-01 12:52:47 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2010-10-01 12:52:47 (GMT) |
commit | 380a233e6334d13ff3cc8cd13353a16135b5788b (patch) | |
tree | 9bc2b696d5f1dd703e2c0f71eec0ffb13ca67447 /generic/tclClock.c | |
parent | 80fd23b4f4aaf7411dfb09003e84ea12fae5bbab (diff) | |
download | tcl-380a233e6334d13ff3cc8cd13353a16135b5788b.zip tcl-380a233e6334d13ff3cc8cd13353a16135b5788b.tar.gz tcl-380a233e6334d13ff3cc8cd13353a16135b5788b.tar.bz2 |
* generic/tclBasic.c, generic/tclClock.c, generic/tclEncoding.c,
* generic/tclEnv.c, generic/tclLoad.c, generic/tclNamesp.c,
* generic/tclObj.c, generic/tclRegexp.c, generic/tclResolve.c,
* generic/tclResult.c, generic/tclUtil.c, macosx/tclMacOSXFCmd.c:
More purging of strcpy() from locations where we already know the
length of the data being copied.
FossilOrigin-Name: 50bdab468291447e44eee4503c3fcce02a5dea4d
Diffstat (limited to 'generic/tclClock.c')
-rw-r--r-- | generic/tclClock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclClock.c b/generic/tclClock.c index 7519da8..a844205 100644 --- a/generic/tclClock.c +++ b/generic/tclClock.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclClock.c,v 1.75 2010/03/05 14:34:03 dkf Exp $ + * RCS: @(#) $Id: tclClock.c,v 1.76 2010/10/01 12:52:49 dkf Exp $ */ #include "tclInt.h" @@ -280,8 +280,8 @@ TclClockInit( * Install the commands. */ - strcpy(cmdName, "::tcl::clock::"); #define TCL_CLOCK_PREFIX_LEN 14 /* == strlen("::tcl::clock::") */ + memcpy(cmdName, "::tcl::clock::", TCL_CLOCK_PREFIX_LEN); for (clockCmdPtr=clockCommands ; clockCmdPtr->name!=NULL ; clockCmdPtr++) { strcpy(cmdName + TCL_CLOCK_PREFIX_LEN, clockCmdPtr->name); data->refCount++; |