diff --git a/main.c b/main.c index ac15032..e465329 100644 --- a/main.c +++ b/main.c @@ -1936,7 +1936,9 @@ spawn () #endif /* LASTLOG */ #endif /* UTMP */ +#ifdef UTMP memset (&utmp, '\0', sizeof(utmp)); +#endif screen->uid = getuid(); screen->gid = getgid();