Source-Changes-HG archive

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

[src/trunk]: src/games/battlestar Don't use return value of a function as for...



details:   https://anonhg.NetBSD.org/src/rev/e218bf6ee962
branches:  trunk
changeset: 765279:e218bf6ee962
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon May 23 22:44:18 2011 +0000

description:
Don't use return value of a function as format string.

diffstat:

 games/battlestar/room.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 768674997462 -r e218bf6ee962 games/battlestar/room.c
--- a/games/battlestar/room.c   Mon May 23 22:39:25 2011 +0000
+++ b/games/battlestar/room.c   Mon May 23 22:44:18 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: room.c,v 1.12 2005/07/01 06:04:54 jmc Exp $    */
+/*     $NetBSD: room.c,v 1.13 2011/05/23 22:44:18 joerg Exp $  */
 
 /*
  * Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)room.c     8.2 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: room.c,v 1.12 2005/07/01 06:04:54 jmc Exp $");
+__RCSID("$NetBSD: room.c,v 1.13 2011/05/23 22:44:18 joerg Exp $");
 #endif
 #endif                         /* not lint */
 
@@ -58,7 +58,7 @@
                                        putchar(c);
                        } else {
                                if (c != '*')
-                                       printf(truedirec(compass, c));
+                                       printf("%s", truedirec(compass, c));
                                compass++;
                        }
        }



Home | Main Index | Thread Index | Old Index