summaryrefslogtreecommitdiffstats
path: root/battlestar
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2011-05-23 22:44:18 +0000
committerjoerg <joerg@NetBSD.org>2011-05-23 22:44:18 +0000
commit0bd4c76b060ad0277eacba5545406dba601a27d2 (patch)
tree6c96e1b56c13e9bbc7c7632a3e8d1ae223efb60f /battlestar
parent94d9f7fcc59fe7e9cd723a48abcf4564575862cc (diff)
downloadbsdgames-darwin-0bd4c76b060ad0277eacba5545406dba601a27d2.tar.gz
bsdgames-darwin-0bd4c76b060ad0277eacba5545406dba601a27d2.tar.zst
bsdgames-darwin-0bd4c76b060ad0277eacba5545406dba601a27d2.zip
Don't use return value of a function as format string.
Diffstat (limited to 'battlestar')
-rw-r--r--battlestar/room.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/battlestar/room.c b/battlestar/room.c
index 81d28a67..61defbbb 100644
--- a/battlestar/room.c
+++ b/battlestar/room.c
@@ -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++;
}
}