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

This commit is contained in:
Kris Kennaway 2000-07-10 08:49:28 +00:00
parent cf6e06f240
commit 084c79f69e

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;