Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/sail Don't use variables as format string.



details:   https://anonhg.NetBSD.org/src/rev/43233f608fa7
branches:  trunk
changeset: 765289:43233f608fa7
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon May 23 23:02:07 2011 +0000

description:
Don't use variables as format string.

diffstat:

 games/sail/assorted.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r f2429bc4418c -r 43233f608fa7 games/sail/assorted.c
--- a/games/sail/assorted.c     Mon May 23 23:01:17 2011 +0000
+++ b/games/sail/assorted.c     Mon May 23 23:02:07 2011 +0000
@@ -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 &&



Home | Main Index | Thread Index | Old Index