summaryrefslogtreecommitdiffstats
path: root/sail
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2011-05-23 23:02:07 +0000
committerjoerg <joerg@NetBSD.org>2011-05-23 23:02:07 +0000
commit472fbbd5937eec7a8eb7a9c9a53f23ebff28e8f6 (patch)
tree72ba27b394e3add399f76e52fc34333a39c8d4c0 /sail
parentccd296bf30f6edab4a9db5c43bfa65fa7d25a7ef (diff)
downloadbsdgames-darwin-472fbbd5937eec7a8eb7a9c9a53f23ebff28e8f6.tar.gz
bsdgames-darwin-472fbbd5937eec7a8eb7a9c9a53f23ebff28e8f6.tar.zst
bsdgames-darwin-472fbbd5937eec7a8eb7a9c9a53f23ebff28e8f6.zip
Don't use variables as format string.
Diffstat (limited to 'sail')
-rw-r--r--sail/assorted.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sail/assorted.c b/sail/assorted.c
index 7aa68739..730b16df 100644
--- a/sail/assorted.c
+++ b/sail/assorted.c
@@ -1,4 +1,4 @@
-/* $NetBSD: assorted.c,v 1.17 2009/03/14 22:52:52 dholland Exp $ */
+/* $NetBSD: assorted.c,v 1.18 2011/05/23 23:02:07 joerg Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)assorted.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: assorted.c,v 1.17 2009/03/14 22:52:52 dholland Exp $");
+__RCSID("$NetBSD: assorted.c,v 1.18 2011/05/23 23:02:07 joerg Exp $");
#endif
#endif /* not lint */
@@ -197,7 +197,7 @@ table(struct ship *from, struct ship *on,
default:
errx(1, "Bad Rhit = %d", Rhit);
}
- makemsg(on, message);
+ makemsg(on, "%s", message);
} else if (roll == 6) {
switch (Hhit) {
case 0:
@@ -225,7 +225,7 @@ table(struct ship *from, struct ship *on,
default:
errx(1, "Bad Hhit = %d", Hhit);
}
- makemsg(on, message);
+ makemsg(on, "%s", message);
}
/*
if (Chit > 1 && on->file->readyL & R_INITIAL &&