Module Name:    src
Committed By:   joerg
Date:           Mon May 23 22:44:18 UTC 2011

Modified Files:
        src/games/battlestar: room.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/games/battlestar/room.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/games/battlestar/room.c
diff -u src/games/battlestar/room.c:1.12 src/games/battlestar/room.c:1.13
--- src/games/battlestar/room.c:1.12	Fri Jul  1 06:04:54 2005
+++ src/games/battlestar/room.c	Mon May 23 22:44:18 2011
@@ -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++;
 			}
 	}

Reply via email to