summaryrefslogtreecommitdiffstats
path: root/games/larn
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-06-30 19:10:49 +0000
committerbde <bde@FreeBSD.org>1998-06-30 19:10:49 +0000
commitcb8e733b14ce95ee791c5c30bdb635007d017c0b (patch)
tree2c07092c2d007b08c3c062b3f7ae9313d6492089 /games/larn
parentde8d2e85734bb002261ea6c0336fa6a4efa6e2f5 (diff)
downloadFreeBSD-src-cb8e733b14ce95ee791c5c30bdb635007d017c0b.zip
FreeBSD-src-cb8e733b14ce95ee791c5c30bdb635007d017c0b.tar.gz
Fixed printf format errors.
Diffstat (limited to 'games/larn')
-rw-r--r--games/larn/bill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/larn/bill.c b/games/larn/bill.c
index 4cf0cae..bbb63dc 100644
--- a/games/larn/bill.c
+++ b/games/larn/bill.c
@@ -130,11 +130,11 @@ mailbill()
exit(0);
while (*cp != NULL) {
if (*cp[0] == '1') {
- sprintf(buf, "\n%d gold pieces back with you from your journey. As the",
+ sprintf(buf, "\n%ld gold pieces back with you from your journey. As the",
(long)c[GOLD]);
write(fd, buf, strlen(buf));
} else if (*cp[0] == '2') {
- sprintf(buf, "\nin preparing your tax bill. You owe %d gold pieces as", (long)c[GOLD]*TAXRATE);
+ sprintf(buf, "\nin preparing your tax bill. You owe %ld gold pieces as", (long)c[GOLD]*TAXRATE);
write(fd, buf, strlen(buf));
} else
write(fd, *cp, strlen(*cp));
OpenPOWER on IntegriCloud