From 084c79f69e7e9eabb36387a4b3701f87a4704e71 Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Mon, 10 Jul 2000 08:49:28 +0000 Subject: [PATCH] Don't call warn() with no format string. --- usr.bin/finger/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/finger/util.c b/usr.bin/finger/util.c index 54c68f0f6f98..dbf5e5f6fe9f 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;