summaryrefslogtreecommitdiffstats
path: root/cribbage/support.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-06-04 04:48:04 +0000
committerdholland <dholland@NetBSD.org>2009-06-04 04:48:04 +0000
commitb384b7ee2511f7ac65ac137707ffa6ad63d1e634 (patch)
tree65d239ef91b23f10e0990f3469e908c0231a8159 /cribbage/support.c
parent86553deab1e6eac9e62315da3ebc855cf6d8edd1 (diff)
downloadbsdgames-darwin-b384b7ee2511f7ac65ac137707ffa6ad63d1e634.tar.gz
bsdgames-darwin-b384b7ee2511f7ac65ac137707ffa6ad63d1e634.tar.zst
bsdgames-darwin-b384b7ee2511f7ac65ac137707ffa6ad63d1e634.zip
sprintf -> snprintf
Diffstat (limited to 'cribbage/support.c')
-rw-r--r--cribbage/support.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cribbage/support.c b/cribbage/support.c
index fefc4f42..e711d8b6 100644
--- a/cribbage/support.c
+++ b/cribbage/support.c
@@ -1,4 +1,4 @@
-/* $NetBSD: support.c,v 1.12 2006/03/20 12:32:21 rtr Exp $ */
+/* $NetBSD: support.c,v 1.13 2009/06/04 04:48:04 dholland Exp $ */
/*-
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)support.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: support.c,v 1.12 2006/03/20 12:32:21 rtr Exp $");
+__RCSID("$NetBSD: support.c,v 1.13 2009/06/04 04:48:04 dholland Exp $");
#endif
#endif /* not lint */
@@ -134,7 +134,7 @@ plyrhand(const CARD hand[], const char *s)
BOOLEAN win;
prhand(hand, CINHAND, Playwin, FALSE);
- (void) sprintf(prompt, "Your %s scores ", s);
+ (void) snprintf(prompt, sizeof(prompt), "Your %s scores ", s);
i = scorehand(hand, turnover, CINHAND, strcmp(s, "crib") == 0, explain);
if ((j = number(0, 29, prompt)) == 19)
j = 0;