summaryrefslogtreecommitdiff
path: root/games/hunt/huntd/expl.c
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2007-09-04 22:39:32 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2007-09-04 22:39:32 +0000
commit6d1005b0932de9ecfaf5efa12fbe197d37e9a44a (patch)
tree61e0b050e2789a67f4f18c178872389795697e31 /games/hunt/huntd/expl.c
parent4ed2dbf887b676108cf2f0492a13d4341704391b (diff)
Some more simple malloc(n * m) -> calloc(n, m) conversions.
ok deraadt@
Diffstat (limited to 'games/hunt/huntd/expl.c')
-rw-r--r--games/hunt/huntd/expl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/hunt/huntd/expl.c b/games/hunt/huntd/expl.c
index cb8890d9799..5046c392c52 100644
--- a/games/hunt/huntd/expl.c
+++ b/games/hunt/huntd/expl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: expl.c,v 1.8 2004/01/16 00:13:19 espie Exp $ */
+/* $OpenBSD: expl.c,v 1.9 2007/09/04 22:39:31 hshoexer Exp $ */
/* $NetBSD: expl.c,v 1.2 1997/10/10 16:33:18 lukem Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
@@ -154,7 +154,7 @@ static REGEN *rem_index = NULL;
static void
init_removed()
{
- rem_index = removed = malloc(conf_maxremove * sizeof(REGEN));
+ rem_index = removed = calloc(conf_maxremove, sizeof(REGEN));
if (rem_index == NULL) {
logit(LOG_ERR, "malloc");
cleanup(1);