diff --git a/timeoutd.c b/timeoutd.c index c684da5..841ad90 100644 --- a/timeoutd.c +++ b/timeoutd.c @@ -850,8 +850,8 @@ int session; void check_idle() { /* Check for exceeded time limits & logoff exceeders */ - char user[sizeof(utmpp->ut_user)]; - char host[sizeof(utmpp->ut_host)]; + char user[sizeof(utmpp->ut_user) + 1]; + char host[sizeof(utmpp->ut_host) + 1]; struct stat status, *pstat; time_t idle, sesstime; short aktconfigline = -1; /* -1 if user is in config; >0 if he's not in config, * is handled in an other way */