Don't call warn() with no format string.
This commit is contained in:
parent
cf6e06f240
commit
084c79f69e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user