From: Doug Evans Date: Wed, 15 Jun 1994 23:23:33 +0000 (+0000) Subject: (dbxout_type): Fix call to bzero. X-Git-Tag: misc/cutover-egcs-0~6447 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0725d62132a544a72b6d8c1f9809b25e39ed00eb;p=thirdparty%2Fgcc.git (dbxout_type): Fix call to bzero. From-SVN: r7496 --- diff --git a/gcc/dbxout.c b/gcc/dbxout.c index b2995c1d8b91..75b01d8c4e96 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -942,10 +942,11 @@ dbxout_type (type, full, show_arg_types) if (next_type_number == typevec_len) { - int len = typevec_len * 2 * sizeof typevec[0]; - - typevec = (enum typestatus *) xrealloc (typevec, len); - bzero ((char *) (typevec + typevec_len), len); + typevec = + (enum typestatus *) xrealloc (typevec, + typevec_len * 2 * sizeof typevec[0]); + bzero ((char *) (typevec + typevec_len), + typevec_len * sizeof typevec[0]); typevec_len *= 2; } }