diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-03-23 02:50:00 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-03-23 02:50:00 +0000 |
commit | f4255ebbf545d1a7cc4ac963387c74f1664ea2a6 (patch) | |
tree | f6d42682e9953a071e59c99e96898512e4b0cc06 /distrib/crunch/crunchide | |
parent | a92488f73e82114d0d47a59cb51cc0af16c3a57d (diff) |
use calloc better; adobriyan@gmail
Diffstat (limited to 'distrib/crunch/crunchide')
-rw-r--r-- | distrib/crunch/crunchide/elf_hide.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/crunch/crunchide/elf_hide.c b/distrib/crunch/crunchide/elf_hide.c index 365b5903194..cd0285f2413 100644 --- a/distrib/crunch/crunchide/elf_hide.c +++ b/distrib/crunch/crunchide/elf_hide.c @@ -1,4 +1,4 @@ -/* $OpenBSD: elf_hide.c,v 1.9 2003/06/03 01:35:30 drahn Exp $ */ +/* $OpenBSD: elf_hide.c,v 1.10 2006/03/23 02:49:59 deraadt Exp $ */ /* * Copyright (c) 1997 Dale Rahn. @@ -382,7 +382,7 @@ reorder_syms(Elf_Ehdr * ehdr, Elf_Shdr * symsect, nsyms = symtabsize / sizeof(Elf_Sym); tmpsymtab = (Elf_Sym *) calloc(1, symtabsize); - symmap = (Symmap *) calloc(1, sizeof(Symmap) * (nsyms)); + symmap = (Symmap *) calloc(nsyms, sizeof(Symmap)); assert(NULL != tmpsymtab); |