Don't call warn() with no format string.

This commit is contained in:
kris 2000-07-10 08:49:28 +00:00
parent cbf1c5013e
commit 90a7a5a6ae

View File

@ -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;