From b384b7ee2511f7ac65ac137707ffa6ad63d1e634 Mon Sep 17 00:00:00 2001 From: dholland Date: Thu, 4 Jun 2009 04:48:04 +0000 Subject: sprintf -> snprintf --- cribbage/support.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cribbage/support.c') 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; -- cgit v1.2.3-56-ge451