summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-07-10 08:49:28 +0000
committerkris <kris@FreeBSD.org>2000-07-10 08:49:28 +0000
commit90a7a5a6aed1354d9c423bc8869a0c153d3ec502 (patch)
tree73263bef29f25a864479d13f7665bb3422ea4e10 /usr.bin
parentcbf1c5013e356d17b5f8658becc7411fdec79850 (diff)
downloadFreeBSD-src-90a7a5a6aed1354d9c423bc8869a0c153d3ec502.zip
FreeBSD-src-90a7a5a6aed1354d9c423bc8869a0c153d3ec502.tar.gz
Don't call warn() with no format string.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/finger/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/finger/util.c b/usr.bin/finger/util.c
index 54c68f0..dbf5e5f 100644
--- a/usr.bin/finger/util.c
+++ b/usr.bin/finger/util.c
@@ -326,7 +326,7 @@ find_idle_and_ttywrite(w)
(void)snprintf(tbuf, sizeof(tbuf), "%s/%s", _PATH_DEV, w->tty);
if (stat(tbuf, &sb) < 0) {
- warn(tbuf);
+ warn("%s", tbuf);
return;
}
w->idletime = now < sb.st_atime ? 0 : now - sb.st_atime;
OpenPOWER on IntegriCloud