Module Name: src Committed By: joerg Date: Mon May 23 23:02:07 UTC 2011
Modified Files: src/games/sail: assorted.c Log Message: Don't use variables as format string. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/games/sail/assorted.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/games/sail/assorted.c diff -u src/games/sail/assorted.c:1.17 src/games/sail/assorted.c:1.18 --- src/games/sail/assorted.c:1.17 Sat Mar 14 22:52:52 2009 +++ src/games/sail/assorted.c Mon May 23 23:02:07 2011 @@ -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 @@ 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 @@ default: errx(1, "Bad Hhit = %d", Hhit); } - makemsg(on, message); + makemsg(on, "%s", message); } /* if (Chit > 1 && on->file->readyL & R_INITIAL &&