summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2002-08-12 00:42:57 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2002-08-12 00:42:57 +0000
commit87ffdf06b6ecc46b38ca953419304b64e37c7c95 (patch)
tree9e44c0b5a073ee17b9d7d3da181c696f012c6248 /games
parent941ec3d1051d178a11f6baa72a3d520413033f2e (diff)
Swap args to calloc(3) so they are in the correct order; art@ ok.
Diffstat (limited to 'games')
-rw-r--r--games/monop/cards.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/monop/cards.c b/games/monop/cards.c
index cc658247394..2906e353fff 100644
--- a/games/monop/cards.c
+++ b/games/monop/cards.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cards.c,v 1.6 2002/07/28 08:44:14 pjanzen Exp $ */
+/* $OpenBSD: cards.c,v 1.7 2002/08/12 00:42:56 aaron Exp $ */
/* $NetBSD: cards.c,v 1.3 1995/03/23 08:34:35 cgd Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)cards.c 8.1 (Berkeley) 5/31/93";
#else
-static const char rcsid[] = "$OpenBSD: cards.c,v 1.6 2002/07/28 08:44:14 pjanzen Exp $";
+static const char rcsid[] = "$OpenBSD: cards.c,v 1.7 2002/08/12 00:42:56 aaron Exp $";
#endif
#endif /* not lint */
@@ -100,7 +100,7 @@ set_up(dp)
int r1, r2;
int i;
- if ((dp->offsets = (int32_t *) calloc(sizeof (int32_t), dp->num_cards)) == NULL)
+ if ((dp->offsets = (int32_t *) calloc(dp->num_cards, sizeof (int32_t))) == NULL)
err(1, NULL);
for (i = 0 ; i < dp->num_cards ; i++) {
if (fread(&dp->offsets[i], sizeof(dp->offsets[i]), 1, deckf) != 1)