From 0bd4c76b060ad0277eacba5545406dba601a27d2 Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 23 May 2011 22:44:18 +0000 Subject: Don't use return value of a function as format string. --- battlestar/room.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'battlestar') 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++; } } -- cgit v1.2.3-56-ge451