sizeof(char *), not in bytes, so we've been allocating and copying around
four or eight times as many bytes as we needed to
ok kettenis@ deraadt@
-/* $OpenBSD: exec_elf.c,v 1.74 2010/06/29 00:28:14 tedu Exp $ */
+/* $OpenBSD: exec_elf.c,v 1.75 2010/07/24 09:50:45 guenther Exp $ */
/*
* Copyright (c) 1996 Per Fogelstrom
#else
NULL,
#endif
- sizeof (AuxInfo) * ELF_AUX_ENTRIES,
+ (sizeof(AuxInfo) * ELF_AUX_ENTRIES / sizeof(char *)),
ELFNAME(copyargs),
setregs,
ELFNAME2(exec,fixup),