summaryrefslogtreecommitdiff
path: root/games/cribbage/support.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2006-03-27 00:10:16 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2006-03-27 00:10:16 +0000
commit1e83c82a3bf562241906e89f69222dfa40422206 (patch)
tree3cb64e8eb5d6a8755f5b2b2f0f18285a9094a131 /games/cribbage/support.c
parent8865bd2a63b0dd63bb6398ca8fef60e3f5669d34 (diff)
assorted fixes mostly from coverity via netbsd via jasper adriaanse via tech
Diffstat (limited to 'games/cribbage/support.c')
-rw-r--r--games/cribbage/support.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/games/cribbage/support.c b/games/cribbage/support.c
index 80db1399b47..2e29ccdc58d 100644
--- a/games/cribbage/support.c
+++ b/games/cribbage/support.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: support.c,v 1.9 2004/07/10 07:26:23 deraadt Exp $ */
+/* $OpenBSD: support.c,v 1.10 2006/03/27 00:10:15 tedu Exp $ */
/* $NetBSD: support.c,v 1.3 1995/03/21 15:08:59 cgd Exp $ */
/*-
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)support.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: support.c,v 1.9 2004/07/10 07:26:23 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: support.c,v 1.10 2006/03/27 00:10:15 tedu Exp $";
#endif
#endif /* not lint */
@@ -114,6 +114,8 @@ cchose(CARD h[], int n, int s)
break;
}
}
+ if (j < 0)
+ errx("cchose internal error %d %d", j, n);
return (j);
}