Skip to content

Commit 8f09f5c

Browse files
committed
Don't use variables as format string.
1 parent 6dee362 commit 8f09f5c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

games/sail/assorted.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: assorted.c,v 1.17 2009/03/14 22:52:52 dholland Exp $ */
1+
/* $NetBSD: assorted.c,v 1.18 2011/05/23 23:02:07 joerg Exp $ */
22

33
/*
44
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
3434
#if 0
3535
static char sccsid[] = "@(#)assorted.c 8.2 (Berkeley) 4/28/95";
3636
#else
37-
__RCSID("$NetBSD: assorted.c,v 1.17 2009/03/14 22:52:52 dholland Exp $");
37+
__RCSID("$NetBSD: assorted.c,v 1.18 2011/05/23 23:02:07 joerg Exp $");
3838
#endif
3939
#endif /* not lint */
4040

@@ -197,7 +197,7 @@ table(struct ship *from, struct ship *on,
197197
default:
198198
errx(1, "Bad Rhit = %d", Rhit);
199199
}
200-
makemsg(on, message);
200+
makemsg(on, "%s", message);
201201
} else if (roll == 6) {
202202
switch (Hhit) {
203203
case 0:
@@ -225,7 +225,7 @@ table(struct ship *from, struct ship *on,
225225
default:
226226
errx(1, "Bad Hhit = %d", Hhit);
227227
}
228-
makemsg(on, message);
228+
makemsg(on, "%s", message);
229229
}
230230
/*
231231
if (Chit > 1 && on->file->readyL & R_INITIAL &&

0 commit comments

Comments
 (0)