Source-Changes-HG archive

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

[src/trunk]: src/games/canfield/canfield Don't use strings from arrays as for...



details:   https://anonhg.NetBSD.org/src/rev/77c045bf9912
branches:  trunk
changeset: 765280:77c045bf9912
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon May 23 22:46:35 2011 +0000

description:
Don't use strings from arrays as format string.

diffstat:

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

diffs (36 lines):

diff -r e218bf6ee962 -r 77c045bf9912 games/canfield/canfield/canfield.c
--- a/games/canfield/canfield/canfield.c        Mon May 23 22:44:18 2011 +0000
+++ b/games/canfield/canfield/canfield.c        Mon May 23 22:46:35 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: canfield.c,v 1.27 2010/01/01 06:37:15 dholland Exp $   */
+/*     $NetBSD: canfield.c,v 1.28 2011/05/23 22:46:35 joerg Exp $      */
 
 /*
  * Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)canfield.c 8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: canfield.c,v 1.27 2010/01/01 06:37:15 dholland Exp $");
+__RCSID("$NetBSD: canfield.c,v 1.28 2011/05/23 22:46:35 joerg Exp $");
 #endif
 #endif /* not lint */
 
@@ -1613,7 +1613,7 @@
                return;
        clear();
        for (cp = basicinstructions; *cp != 0; cp++)
-               printw(*cp);
+               printw("%s", *cp);
        refresh();
        getch();
        clear();
@@ -1626,7 +1626,7 @@
                return;
        clear();
        for (cp = bettinginstructions; *cp != 0; cp++)
-               printw(*cp);
+               printw("%s", *cp);
        refresh();
        getch();
 }



Home | Main Index | Thread Index | Old Index