[BACK]Return to elf2aout.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / elf2aout

Diff for /src/usr.bin/elf2aout/Attic/elf2aout.c between version 1.5 and 1.6

version 1.5, 2004/03/16 01:11:09 version 1.6, 2006/04/02 21:38:56
Line 129 
Line 129 
          * Find space for a table matching ELF section indices to a.out           * Find space for a table matching ELF section indices to a.out
          * symbol types.           * symbol types.
          */           */
         symTypeTable = (int *) malloc(ex.e_shnum * sizeof(int));          symTypeTable = calloc(ex.e_shnum, sizeof(int));
         if (!symTypeTable) {          if (!symTypeTable) {
                 fprintf(stderr, "symTypeTable: can't allocate.\n");                  fprintf(stderr, "symTypeTable: can't allocate.\n");
                 exit(1);                  exit(1);
         }          }
         memset(symTypeTable, 0, ex.e_shnum * sizeof(int));  
   
         /*          /*
          * Look for the symbol table and string table... Also map section           * Look for the symbol table and string table... Also map section

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6