From f6138c99bc04c12506713ae9badd0552ddfc22e5 Mon Sep 17 00:00:00 2001 From: itojun Date: Mon, 10 Jul 2000 10:19:25 +0000 Subject: printf() pedant - do not pass variable alone, use %s. idea from openbsd. after looking at freebsd commit msgs from kris@freebsd. --- hack/hack.tty.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hack/hack.tty.c') 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)"); -- cgit v1.2.3-56-ge451