From 719a82590cd93c0bcf3540af4ae0355808340c02 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Wed, 3 Jun 2009 15:00:08 +0000 Subject: [PATCH] Replace bzero() calls with memset(), fix Win32 issue. --- src/toolsComm/flex/tblcmp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/toolsComm/flex/tblcmp.c b/src/toolsComm/flex/tblcmp.c index 5a1691447..6af219653 100644 --- a/src/toolsComm/flex/tblcmp.c +++ b/src/toolsComm/flex/tblcmp.c @@ -312,7 +312,7 @@ void expand_nxt_chk(void) nxt = reallocate_integer_array( nxt, current_max_xpairs ); chk = reallocate_integer_array( chk, current_max_xpairs ); - bzero( (char *) (chk + old_max), + memset( (char *) (chk + old_max), 0, MAX_XPAIRS_INCREMENT * sizeof( int ) / sizeof( char ) ); } @@ -436,7 +436,8 @@ void inittbl(void) { int i; - bzero( (char *) chk, current_max_xpairs * sizeof( int ) / sizeof( char ) ); + memset( (char *) chk, 0, + current_max_xpairs * sizeof( int ) / sizeof( char ) ); tblend = 0; firstfree = tblend + 1;