From 6cc626ca663340efc734eaf0822b2948251aae43 Mon Sep 17 00:00:00 2001 From: mrg Date: Sun, 3 Feb 2019 10:48:46 +0000 Subject: - enlarge buffer to avoid snprintf() truncation --- cribbage/score.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cribbage/score.c') 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; -- cgit v1.2.3-56-ge451