From de862ba918a8377ad81e547eb96de5ad0cb4c9c2 Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 24 May 2011 12:46:16 +0000 Subject: [PATCH] Properly use format string --- usr.bin/tip/hunt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/tip/hunt.c b/usr.bin/tip/hunt.c index 7aa608e97f4f..2202bd0dc15e 100644 --- a/usr.bin/tip/hunt.c +++ b/usr.bin/tip/hunt.c @@ -1,4 +1,4 @@ -/* $NetBSD: hunt.c,v 1.16 2006/12/14 17:09:43 christos Exp $ */ +/* $NetBSD: hunt.c,v 1.17 2011/05/24 12:46:16 joerg Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)hunt.c 8.1 (Berkeley) 6/6/93"; #endif -__RCSID("$NetBSD: hunt.c,v 1.16 2006/12/14 17:09:43 christos Exp $"); +__RCSID("$NetBSD: hunt.c,v 1.17 2011/05/24 12:46:16 joerg Exp $"); #endif /* not lint */ #include "tip.h" @@ -76,7 +76,7 @@ hunt(char *name) } (void)alarm(0); if (FD < 0) { - warn(cp); + warn("%s", cp); deadfl = 1; } else if (!deadfl) { struct termios cntrl;