From f4255ebbf545d1a7cc4ac963387c74f1664ea2a6 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 23 Mar 2006 02:50:00 +0000 Subject: use calloc better; adobriyan@gmail --- distrib/crunch/crunchide/elf_hide.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'distrib/crunch/crunchide') 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); -- cgit v1.2.3