=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/elf2aout/Attic/elf2aout.c,v retrieving revision 1.5 retrieving revision 1.6 diff -c -r1.5 -r1.6 *** src/usr.bin/elf2aout/Attic/elf2aout.c 2004/03/16 01:11:09 1.5 --- src/usr.bin/elf2aout/Attic/elf2aout.c 2006/04/02 21:38:56 1.6 *************** *** 1,4 **** ! /* $OpenBSD: elf2aout.c,v 1.5 2004/03/16 01:11:09 tedu Exp $ */ /* * Copyright (c) 1995 --- 1,4 ---- ! /* $OpenBSD: elf2aout.c,v 1.6 2006/04/02 21:38:56 djm Exp $ */ /* * Copyright (c) 1995 *************** *** 129,140 **** * Find space for a table matching ELF section indices to a.out * symbol types. */ ! symTypeTable = (int *) malloc(ex.e_shnum * sizeof(int)); if (!symTypeTable) { fprintf(stderr, "symTypeTable: can't allocate.\n"); exit(1); } - memset(symTypeTable, 0, ex.e_shnum * sizeof(int)); /* * Look for the symbol table and string table... Also map section --- 129,139 ---- * Find space for a table matching ELF section indices to a.out * symbol types. */ ! symTypeTable = calloc(ex.e_shnum, sizeof(int)); if (!symTypeTable) { fprintf(stderr, "symTypeTable: can't allocate.\n"); exit(1); } /* * Look for the symbol table and string table... Also map section