From 83ccf38996c164203905a620ecf3c8e14ecb1768 Mon Sep 17 00:00:00 2001 From: dholland Date: Tue, 19 Feb 2008 09:32:34 +0000 Subject: Don't use sprintf; use snprintf. --- monop/prop.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'monop/prop.c') diff --git a/monop/prop.c b/monop/prop.c index f5784b6e..916129ad 100644 --- a/monop/prop.c +++ b/monop/prop.c @@ -1,4 +1,4 @@ -/* $NetBSD: prop.c,v 1.12 2008/01/28 06:16:13 dholland Exp $ */ +/* $NetBSD: prop.c,v 1.13 2008/02/19 09:32:34 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)prop.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: prop.c,v 1.12 2008/01/28 06:16:13 dholland Exp $"); +__RCSID("$NetBSD: prop.c,v 1.13 2008/02/19 09:32:34 dholland Exp $"); #endif #endif /* not lint */ @@ -180,7 +180,8 @@ bid() i = (i + 1) % num_play; if (in[i]) { do { - (void)sprintf(buf, "%s: ", name_list[i]); + (void)snprintf(buf, sizeof(buf), "%s: ", + name_list[i]); cur_bid = get_int(buf); if (cur_bid == 0) { in[i] = FALSE; -- cgit v1.2.3-56-ge451