From 8897cb868f1887e7b4922ccfe33916bc7434747d Mon Sep 17 00:00:00 2001 From: dholland Date: Tue, 19 Feb 2008 10:47:40 +0000 Subject: getinp() no longer magically treats the prompt arg as a printf format, so don't escape % as %%. From OpenBSD. --- monop/spec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'monop') diff --git a/monop/spec.c b/monop/spec.c index d562bb59..692c745f 100644 --- a/monop/spec.c +++ b/monop/spec.c @@ -1,4 +1,4 @@ -/* $NetBSD: spec.c,v 1.8 2008/02/19 10:46:21 dholland Exp $ */ +/* $NetBSD: spec.c,v 1.9 2008/02/19 10:47:40 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)spec.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: spec.c,v 1.8 2008/02/19 10:46:21 dholland Exp $"); +__RCSID("$NetBSD: spec.c,v 1.9 2008/02/19 10:47:40 dholland Exp $"); #endif #endif /* not lint */ @@ -52,7 +52,7 @@ inc_tax() { int worth, com_num; - com_num = getinp("Do you wish to lose 10%% of your total worth or " + com_num = getinp("Do you wish to lose 10% of your total worth or " "$200? ", perc); worth = cur_p->money + prop_worth(cur_p); printf("You were worth $%d", worth); -- cgit v1.2.3