diff options
author | Kevin B Kenny <kennykb@acm.org> | 2003-03-06 23:17:05 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2003-03-06 23:17:05 (GMT) |
commit | 894d26e115f83b973c3a3c31d7e5ccab5e604779 (patch) | |
tree | a3d07e8d721b2ce4c04e620c1cc1bf9a5ee8598b | |
parent | 1767e49b26c0b5b2f14124ba0abab81f5ade4ec8 (diff) | |
download | tcl-894d26e115f83b973c3a3c31d7e5ccab5e604779.zip tcl-894d26e115f83b973c3a3c31d7e5ccab5e604779.tar.gz tcl-894d26e115f83b973c3a3c31d7e5ccab5e604779.tar.bz2 |
Replaced a non-portable 'bzero' with a portable 'memset'. [Bug 698442].
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | generic/tclCompCmds.c | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ +2003-03-06 Kevin Kenny <kennykb@users.sourceforge.net> + + * generic/tclCompCmds.c (TclCompileSwitchCmd): + Replaced a non-portable 'bzero' with a portable 'memset'. + [Bug 698442]. + 2003-03-06 Mo DeJong <mdejong@users.sourceforge.net> * generic/tclIO.c (Tcl_Seek, Tcl_OutputBuffered): diff --git a/generic/tclCompCmds.c b/generic/tclCompCmds.c index 82b58d4..4e5f617 100644 --- a/generic/tclCompCmds.c +++ b/generic/tclCompCmds.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclCompCmds.c,v 1.40 2003/03/05 22:31:23 dkf Exp $ + * RCS: @(#) $Id: tclCompCmds.c,v 1.41 2003/03/06 23:17:09 kennykb Exp $ */ #include "tclInt.h" @@ -3060,7 +3060,7 @@ TclCompileSwitchCmd(interp, parsePtr, envPtr) contFixIndex = -1; fixupArray = (JumpFixup *) ckalloc(sizeof(JumpFixup) * argc); fixupTargetArray = (int *) ckalloc(sizeof(int) * argc); - bzero(fixupTargetArray, sizeof(int) * argc); + (VOID *) memset( fixupTargetArray, 0, argc * sizeof( int ) ); fixupCount = 0; foundDefault = 0; for (i=0 ; i<argc ; i+=2) { |