diff options
| author | joerg <joerg@NetBSD.org> | 2011-05-24 12:46:16 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2011-05-24 12:46:16 +0000 |
| commit | b7a4ce41a102d81302cbe02247d265e1343e4c9b (patch) | |
| tree | 1b6f67c4904ba6f0be94b66a032791db15ba80eb /usr.bin/tip | |
| parent | 3c7118e70398543190da783a163a4cb8d6de6c1d (diff) | |
Properly use format string
Diffstat (limited to 'usr.bin/tip')
| -rw-r--r-- | usr.bin/tip/hunt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tip/hunt.c b/usr.bin/tip/hunt.c index 7aa608e97f4..2202bd0dc15 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; |
