summaryrefslogtreecommitdiffstats
path: root/hack/hack.tty.c
diff options
context:
space:
mode:
authoritojun <itojun@NetBSD.org>2000-07-10 10:19:25 +0000
committeritojun <itojun@NetBSD.org>2000-07-10 10:19:25 +0000
commitf6138c99bc04c12506713ae9badd0552ddfc22e5 (patch)
tree59c555f174e5e4a97d62b958f2a298e0ff2ad570 /hack/hack.tty.c
parentf17668aabd740a830bddace04403bbcfdfd78de0 (diff)
downloadbsdgames-darwin-f6138c99bc04c12506713ae9badd0552ddfc22e5.tar.gz
bsdgames-darwin-f6138c99bc04c12506713ae9badd0552ddfc22e5.tar.zst
bsdgames-darwin-f6138c99bc04c12506713ae9badd0552ddfc22e5.zip
printf() pedant - do not pass variable alone, use %s.
idea from openbsd. after looking at freebsd commit msgs from kris@freebsd.
Diffstat (limited to 'hack/hack.tty.c')
-rw-r--r--hack/hack.tty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hack/hack.tty.c b/hack/hack.tty.c
index 5259258e..f979e903 100644
--- a/hack/hack.tty.c
+++ b/hack/hack.tty.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.tty.c,v 1.6 1997/10/19 16:59:17 christos Exp $ */
+/* $NetBSD: hack.tty.c,v 1.7 2000/07/10 10:19:25 itojun Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)hack.tty.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: hack.tty.c,v 1.6 1997/10/19 16:59:17 christos Exp $");
+__RCSID("$NetBSD: hack.tty.c,v 1.7 2000/07/10 10:19:25 itojun Exp $");
#endif
#endif /* not lint */
@@ -98,7 +98,7 @@ settty(s)
clear_screen();
end_screen();
if (s)
- printf(s);
+ printf("%s", s);
(void) fflush(stdout);
if (tcsetattr(0, TCSADRAIN, &inittyb) < 0)
perror("Hack (settty)");