summaryrefslogtreecommitdiffstats
path: root/cribbage/score.c
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2019-02-03 10:48:46 +0000
committermrg <mrg@NetBSD.org>2019-02-03 10:48:46 +0000
commit6cc626ca663340efc734eaf0822b2948251aae43 (patch)
tree35be74e990d203f369ca2e3bbb0fc73c587672db /cribbage/score.c
parent0c1b99fd2eee255ee80301b9ad0a88c9daae9f9d (diff)
downloadbsdgames-darwin-6cc626ca663340efc734eaf0822b2948251aae43.tar.gz
bsdgames-darwin-6cc626ca663340efc734eaf0822b2948251aae43.tar.zst
bsdgames-darwin-6cc626ca663340efc734eaf0822b2948251aae43.zip
- enlarge buffer to avoid snprintf() truncation
Diffstat (limited to 'cribbage/score.c')
-rw-r--r--cribbage/score.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cribbage/score.c b/cribbage/score.c
index a2af9eb7..56c023c8 100644
--- a/cribbage/score.c
+++ b/cribbage/score.c
@@ -1,4 +1,4 @@
-/* $NetBSD: score.c,v 1.16 2012/10/13 20:36:06 dholland Exp $ */
+/* $NetBSD: score.c,v 1.17 2019/02/03 10:48:46 mrg Exp $ */
/*-
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)score.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: score.c,v 1.16 2012/10/13 20:36:06 dholland Exp $");
+__RCSID("$NetBSD: score.c,v 1.17 2019/02/03 10:48:46 mrg Exp $");
#endif
#endif /* not lint */
@@ -115,7 +115,7 @@ scorehand(const CARD hand[], CARD starter, int n, BOOLEAN crb,
int hscore;
BOOLEAN flag;
CARD h[(CINHAND + 1)];
- char buf[32];
+ char buf[52];
explan[0] = '\0'; /* initialize explanation */
hscore = 0;