Module Name: src
Committed By: joerg
Date: Tue May 24 12:46:16 UTC 2011
Modified Files:
src/usr.bin/tip: hunt.c
Log Message:
Properly use format string
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/usr.bin/tip/hunt.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/tip/hunt.c
diff -u src/usr.bin/tip/hunt.c:1.16 src/usr.bin/tip/hunt.c:1.17
--- src/usr.bin/tip/hunt.c:1.16 Thu Dec 14 17:09:43 2006
+++ src/usr.bin/tip/hunt.c Tue May 24 12:46:16 2011
@@ -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 @@
}
(void)alarm(0);
if (FD < 0) {
- warn(cp);
+ warn("%s", cp);
deadfl = 1;
} else if (!deadfl) {
struct termios cntrl;