diff options
author | joerg <joerg@NetBSD.org> | 2011-05-23 22:44:18 +0000 |
---|---|---|
committer | joerg <joerg@NetBSD.org> | 2011-05-23 22:44:18 +0000 |
commit | 0bd4c76b060ad0277eacba5545406dba601a27d2 (patch) | |
tree | 6c96e1b56c13e9bbc7c7632a3e8d1ae223efb60f /battlestar | |
parent | 94d9f7fcc59fe7e9cd723a48abcf4564575862cc (diff) | |
download | bsdgames-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.c | 6 |
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++; } } |