Don't use return value of a function as format string.
authorjoerg <joerg@NetBSD.org>
Mon, 23 May 2011 22:44:18 +0000 (22:44 +0000)
committerjoerg <joerg@NetBSD.org>
Mon, 23 May 2011 22:44:18 +0000 (22:44 +0000)
battlestar/room.c

index 81d28a67c59794688b464feb91d48391348d73c2..61defbbbdbf889c3a854f5b75bfd81189fe99a26 100644 (file)
@@ -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 @@ writedes(void)
                                        putchar(c);
                        } else {
                                if (c != '*')
-                                       printf(truedirec(compass, c));
+                                       printf("%s", truedirec(compass, c));
                                compass++;
                        }
        }